ios6 Autorotation not fixed

I just created a new project with the most recent stable version of cocos2d-x and it seems that the autorotation problem still has not been fixed. The [window setRootViewController:viewController] does not seem to work and I have tried to use [window addSubview: viewController.view] as well and with no luck.

It is only a template project, so I believe that it should work; however, no matter what I try the simulator is not rotated for landscape. Can someone tell me how I can possibly fix this?

Thanks!

Alright I found my fix :slight_smile: It seems there is something wrong with the method:

  • (NSUInteger) supportedInterfaceOrientations in RootViewController.mm

It originally returns:
UIInterfaceOrientationMaskAllButUpsideDown

But should return
UIInterfaceOrientationMaskLandscape

Found my fix here:
http://www.cocos2d-x.org/news/73

Thanks!