I’m building a cocos2d game which is supposed to be in portrait mode. I changed the RootViewController.m to portrait mode, and everything works fine, both on the simulator and on my iPad. However, when I run the game on my iPhone, it defaults back to landscape mode.
Any ideas on how to fix this?
Thanks.
I have a better solution that will work 100%:
Replace all the stuff that was in the RootViewController.m /
shouldAutorotateToInterfaceOrientation Method with following:
And if I ever want to change the orientation during runtime / switching scene:
Note that Auto Rotation is now on longer supported