0

iPad Orientations not working,

// Add the navigation controller's view to the window and display. [window addSubview:navigationController.view];

  • (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation {

    NSLog(@"we are here");

    return YES;

} And also I have allready setup info.plist. I have 4 items in that array, one for each orientation. –

DIJO JOSEPH
  • 366
  • 2
  • 18

1 Answers1

1

There's a bug in xcode 6.1 around auto rotations.

Here's the answer to your question for reference: https://stackoverflow.com/a/26543312/4171538

Community
  • 1
  • 1
anthonyliao
  • 1,314
  • 1
  • 8
  • 8
  • Try replacing `shouldAutorotateToInterfaceOrientation` with `shouldAutorotate` as stated in http://stackoverflow.com/questions/12260261/shouldautorotatetointerfaceorientation-not-being-called-in-ios-6 – anthonyliao Oct 28 '14 at 18:49
  • I think the issue is in Xcode 6.0 and iOS 8.0 and above. I also try it in Xcode 6.0 but its not working. – GSD Nov 14 '14 at 07:38