Hi i need to set a game in cocos2d to run only on portrait. I have checked de portrait mode checkbox in XCode project settings, also from spritebuilder, set the game to portrait. Nothing of this is working, i'm still able to rotate device orientation. Is it something thant i;m missing in order for this to work, or is it a way to set this by code? I found something linke
[director setDeviceOrientation] or [UIdevice setdeviceOrietation]
All this is deprecated in 3.x versions Thanks in advance!
I dont use sprite builder myself, but still there must be a line like this in AppDelegate.m (this is from one of my apps) :
Put in your code the appropriate orientation in the
setupCococ2dWithOptions
options. That should be :