In my cocos2d application, inside the applicationDidFinishLaunching method for my application delegate, I set the orientation via [director setDeviceOrientation: kCCDeviceOrientationPortrait] because I really need a portrait. However, Apple rejected my application, stating that it should support an inverted portrait.
I'm not sure how I discovered this. Reading the current orientation of the Device seems to return an unknown orientation, so my questions are twofold:
1) How should I determine the orientation so that I can correctly set it to the portrait or portrait at the top (where it will stay forever).
2) I suspect that I will have a problem with the screen saver because it loaded before I get to this point in the delegate. How to determine the orientation so that I can set the correct splash screen?
source
share