Search code examples
iosios8ios-simulatorxcode6

How do I test orientation lock in iOS8 simulator?


If I recall correctly I could set the orientation lock in the iOS Simulator before XCode 6. Now it appears this option is no longer available. Is it somewhere else?

Note: I'm testing web apps that adjust to orientation. They need to do different things if the user has the orientation locked vs unlocked and so I need to test. I could have sworn I was able to test this on iOS7.1 simulator in XCode 5 but it seems that option is missing in XCode 6.

Is there a way to test this in the simulator?


Solution

  • If you slide up control center, you can click on the rotation lock button to lock rotation.