Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS app starts in landscape mode

I have a strange problem. My app keeps starting in landscape mode. If I open it in simulator it rotates to landscape mode automatically. When I start it on iPhone it firstly starts in landscape mode and then shortly after it rotates to correct position. I have set "Initial interface orientation" in .plist to portrait, but that changed nothing.

like image 841
Jaroslav Avatar asked Feb 09 '12 12:02

Jaroslav


People also ask

How do I turn off landscape mode in IOS?

Swipe down from the top-right corner of your screen to open Control Center. Tap the Portrait Orientation Lock button to make sure that it's off.

Can you force apps to rotate on iPhone?

Check Rotation Lock On an iPhone with a Home button, swipe up from the bottom of the screen to access it. On an iPhone without a Home button, swipe down from the top-right corner of the screen instead. Here, tap on the rotation lock icon (which looks like a lock with a circular arrow) to turn it on or off.

How do I force an app to rotate?

Android Settings Start by going to Settings => Display and locate the “Device rotation” setting. On my personal cell phone, tapping this will reveal two options: “Rotate the contents of the screen,” and “Stay in portrait view.”

How do you lock orientation on iPhone?

On iPhone X or later, swipe down from the top right side of your iPhone screen. If you have an iPhone SE (2nd gen) or an iPhone 8 or earlier, swipe up from the bottom of your screen (3 finger swipe up for VoiceOver users), to open Control Center. Select the Portrait Orientation Lock icon.


1 Answers

I had the same problem. If you go to your Supported Interface Orientations you'll see Item 0 ... Item 1 ...

And so on. If you edit this list so that Portrait (bottom home button) is the first item in the list then your app will open in portrait mode. You can still support other orientations as items 1 thru 3.

like image 122
BB990 Avatar answered Sep 20 '22 06:09

BB990