0

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?

Cœur
  • 37,241
  • 25
  • 195
  • 267
oseres
  • 11
  • 3

1 Answers1

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