How to set the default orientation in iOS Simulator

ananfang picture ananfang · Jan 6, 2012 · Viewed 15.7k times · Source

I always test the iOS app on iOS Simulator in portrait orientation. But I did't know what I change, it currently run in landscape orientation in default...@@"

How to set the default orientation back to portrait mode?

Updated Change the "Supported Device Orientations" to Portrait only. And run the simulator, it will show in portrait mode at start. And then change the "Supported Device Orientations" to what you want, it will start in portrait.

Answer

Devan Somaia picture Devan Somaia · May 31, 2012

I just had the same problem, I fixed it by going to the app's .plist file, and changing the 'supported interface orientations' options.

It is an array of possible orientations, and I'm pretty sure that it is in priority order, so make sure 'portrait (bottom home button)' is the first one.

It worked for me, hope it helps you.