Cocos2d orientation problem in ios 6

I've just picked up development of a game that I started ages again, and hit a problem. The orientation was wrong in ios 6 for my landscape game.

The fix is straight forward. Add:

 [window setRootViewController:viewController];


[window addSubview: viewController.view];

in your app delegate file.

1 comment: