iOS6 & landscape orientation issue


#1

Compiling with iOS6 SDK and running a landscape app on a iOS6 device results in a strange orientation isssue.

After the app starts the orientation is landscape left and then it rotates to the current landscape orientation.

The app runs fine and also auto rotates the orientation

  • it’s just that on startup it does 2x auto rotation.

I use the regular RootViewController.mm code for iOS6:

`- (NSUInteger) supportedInterfaceOrientations{
#ifdef __IPHONE_6_0
#warning ios6 compilation!
return UIInterfaceOrientationMaskLandscape;
#endif
}

  • (BOOL) shouldAutorotate {
    return YES;
    }`

#2

I am sorry, what’s the issue?


#3

Minggo Zhang wrote:

I am sorry, what’s the issue?

A landscape app on iOS6 rotates 2x at start.