Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make an ipad app only portrait?

I am making an ipad app, and i set the the app to only portrait, but it still works in landscape? Why is this happening only on an ipad? How do i fix this?

Note: if the answer is in code, please write it in swift.

like image 334
nachshon fertel Avatar asked Apr 21 '15 17:04

nachshon fertel


People also ask

How do I make my IOS App portrait only?

Go to Targets -> General, scroll down and you can select the Orientation as portrait only.

Why do some apps only work in portrait on iPad?

The developer of the app can determine the supported orientations. If they have decided that landscape isn't supported, then you cannot run it in landscape.

How do I change my iPad to portrait?

How to rotate the screen on your iPad. Make sure that Rotation Lock is off: Swipe down from the top-right corner of your screen to open Control Center. Then tap the Rotation Lock button to make sure it's off.


2 Answers

In xcode select your project. Go to Targets -> General, scroll down and you can select the Orientation as portrait only.

You can also make change to info.plist file to select proper orientations for Supported interface orientations (iPad)

like image 68
Arun Gupta Avatar answered Sep 21 '22 15:09

Arun Gupta


In deployment Info section you can select your app orientation to support.

like image 36
Venu Gopal Tewari Avatar answered Sep 21 '22 15:09

Venu Gopal Tewari