Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Landscape Orientation for iPad Only NOT iPhone

I have an iPhone Storyboard and iPad Storyboard in my xCode project. In my iPhone version, I only want portrait mode to work (which is already there).

Now, I have added a storyboard for iPad, but iPad is working only with Portrait mode. However, I want the iPad to work in Portrait and Landscape and the iPhone to remain as portrait only

Please advise.

like image 554
Omar Avatar asked Dec 26 '13 13:12

Omar


People also ask

How do I force my iPad to landscape?

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 I make my iPhone Apps landscape on iPad?

Answer: A: For compatible Apps that are intended for iPhone, iPadOS15 will now automatically rotate the App to display in Landscape screen orientation. There is no manual configuration or setting to enable this feature.

How do I make my IOS App portrait only?

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


1 Answers

Select your project -> Target -> Deployement info -> iPhone. and checkmark as follow:

for iPhone:

for iPhone

And for iPad:

for iPad

like image 134
3 revs Avatar answered Sep 27 '22 17:09

3 revs