I am using box2d for ios app development.I would like to fix device orientation to landscape left which comes default in cocos2d.
How would I go about locking the screen orientation so that it cannot be changed while the user is playing?
I am using box2d for ios app development.I would like to fix device orientation to landscape left which comes default in cocos2d.
How would I go about locking the screen orientation so that it cannot be changed while the user is playing?
Here's the answer to your question:
You tell the OS to ignore system rotations.
In Cocos2D open the GameConfig.h and change the Autorotation macro according to its documentation to disable autorotate support.