0

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?

swiecki
  • 3,483
  • 3
  • 23
  • 19
Pardhu
  • 5
  • 4

2 Answers2

0

Here's the answer to your question:

System ignore iPhone rotation

You tell the OS to ignore system rotations.

Community
  • 1
  • 1
Almo
  • 15,538
  • 13
  • 67
  • 95
0

In Cocos2D open the GameConfig.h and change the Autorotation macro according to its documentation to disable autorotate support.

CodeSmile
  • 64,284
  • 20
  • 132
  • 217