25
votes

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.

2

2 Answers

14
votes

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.

4
votes

Rotate it. In the Simulator, use CMD+LeftArrow or CMD+RightArrow to rotate, or use the menu option Hardware->Rotate Left or Hardware->Rotate Right.