I’ve an app thats 100% in Landscape mode, and on iOS5 devices it appears that way. When I install it on iOS6 it is in Portrait mode.
In my info.plist i set
Supported interface orientations
item 0 : Landscape (right home button)
item 1 : Landscape (left home button)
I’ve read the documentation and added in the 2 new methods in my app delegate but its made no difference. Do I need to ahead and add these 2 methods to every root view(the view that appears on each tab) in the app?
- (BOOL)shouldAutorotate
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations
{
return YES;
}
In every XIB in the project I’ve set Orientation: Landscape
Anybody able to suggest what it is I’ve missed out on implementing?
Many Thanks,
-Code
As states in the documentation the
supportedInterfaceOrientationsthat it should return a bit mask specifying which orientations are supported. Not a BOOL.Thus you should return which interface orientation are supported, like:
UIInterfaceOrientationMaskAll,UIInterfaceOrientationMaskAllButUpsideDown, ….