I am in the process of building a cocos2d game with kobold2d and since I upgraded to xcode 4.5 every time I build the project the device orientation starts out in landscape and the rotates to portrait mode automatically? I in the precious versions of xcode the default orientation is landscape but now it keeps switching on its own.
Asked
Active
Viewed 609 times
3
-
What version of cocos2d are you running? – Ben Trengrove Sep 19 '12 at 22:10
-
cocos2d v1.1.0 This is in kobold2d just so you know. – Stephen Sep 19 '12 at 22:31
-
same problem here. have you tried the new version of cocos? – OMGPOP Sep 21 '12 at 09:10
1 Answers
1
In AppDelegate change the line that says something like:
[window addSubView:viewcontroller.view];
to
[window setRootViewController:viewcontroller];
that should do it.

marciokoko
- 4,988
- 8
- 51
- 91