I 'm working on an iPad app in landscape mode only that worked nicely under iOS5 and under. On iOS6, the 2nd screen (login screen) turns suddenly in portrait mode. What parameters should i check?
Asked
Active
Viewed 29 times
1 Answers
0
check below methods for it.
// need for above ios6
- (BOOL)shouldAutorotate
{
return NO; // YES or NO as per your requirement
}
- (BOOL)supportedInterfaceOrientations
{
return UIInterfaceOrientationLandscapeRight|UIInterfaceOrientationLandscapeLeft;
}

pdubal
- 131
- 1
- 5
-
Thanks @ParthDubai, i solved the issue in adding `[window setRootViewController:viewController];` in AppDelegate – oseres May 17 '13 at 21:18