Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the default orientation in iOS Simulator

Tags:

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.

like image 984
ananfang Avatar asked Jan 06 '12 04:01

ananfang


People also ask

How do I change orientation in iOS simulator?

Press command key and press left arrow / right arrow. This would switch between the landscape and portrait views you require.

How do you rotate in simulator?

Android simulator Android Simulators can be rotated using the following hotkeys: Linux – Ctrl + F12. Mac – Fn + Left Ctrl + F12. Windows – Left Ctrl + F11 or Left Ctrl + FF12.


1 Answers

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.

like image 146
Devan Somaia Avatar answered Sep 21 '22 20:09

Devan Somaia