Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable landscape orientation in iPhone but keep it enabled on iPad?

I am looking to allow app rotation on an iPad, but would like to keep it disabled on the iPhone, as it is too narrow.

So far, I only see instructions on one device or the other, but not both.

Any ideas?

like image 683
Gabriel Garrett Avatar asked Oct 24 '14 16:10

Gabriel Garrett


People also ask

How do I restrict landscape mode in IOS?

If you want to disable landscape orientation for both iPhone and iPad. Go to Targets and Go to the General tab. See the below screen and deselect landscape left and landscape right.

How do I force an app to landscape on 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.

How do you turn rotation lock off on iPhone?

Swipe up from the bottom edge of your screen to open Contol Center. Tap the Portrait Orientation Lock button to make sure that it's off.


1 Answers

In Xcode 6 you have to edit Info.plist:

enter image description here

like image 169
Aaron Brager Avatar answered Oct 03 '22 21:10

Aaron Brager