Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do you make an app ONLY support landscape?

how do you make an app ONLY support landscape? No portrait mode JUST landscape throughout the whole thing in xcode 3?

like image 743
user722566 Avatar asked Apr 29 '11 23:04

user722566


People also ask

How do I get my apps to work in landscape mode?

When on the main screen, under the orientation section, you will see a number of options like 'Auto-rotate OFF', 'Auto-rotate ON', 'Forced Portrait' and 'Forced Landscape'.

Why are some apps not landscape?

Ensure that you have enabled Auto-rotate for your tablet. To do this, swipe down on the tablet to display the status bar and touch Auto Rotate.

How do I make my IOS App portrait only?

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


2 Answers

The accepted answer did not work for me. This did:

In the properties file for your app (YOURAPPNAME-Info.plist), located in the "supporting files" group, there is an array called "Supported interface orientations". Remove the orientations you don't want from the array, and your app will be locked into the remaining orientation.

like image 73
James Harpe Avatar answered Oct 04 '22 20:10

James Harpe


You can change the Supported interface orientations in your info.plist file, as shown below:

Picture showing how to change the supported orientations in the info.plist file

like image 33
Nick Gallimore Avatar answered Oct 04 '22 22:10

Nick Gallimore