Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ipad in landscape mode and iphone in portrait mode

I need to set Portrait mode when my application is running in a iPhone and in Landscape mode when running in iPad. I have change in info.plist but i can't set it for iPad or iPhone.

like image 780
Nabil El Avatar asked Oct 07 '13 11:10

Nabil El


People also ask

Can iPhone apps run in landscape mode on the iPad?

However, one small but interesting detail is that iPhone apps can now run in landscape mode on the iPad with iPadOS 15. Previously on the iPad, if you had installed an iPhone app that did not fully support the tablet’s larger display, it would run in the iPhone format with black borders around it instead of full screen.

How to rotate iPhone X in landscape mode?

There is a simpler way to do it. Step 1 Put your iPhone into landscape mode to view the wide-screen movies or YouTube video. Step 2 Open the Control Center and tap the Lock icon to lock iPhone X or other models in landscape mode. Now, you can rotate your iPhone, but the screen keeps in landscape mode.

How to fix iPhone stuck in landscape mode?

When you access an app and it gets stuck in landscape mode, go back to your home screen and try another app, such as Messages. If other apps can switch between landscape and portrait modes, it means your iPhone works well. As mentioned previously, there is a Screen Lock in Control Center.

How to look at text in landscape mode on iPhone?

Looking text in landscape mode on iPhone is possible. By default, iPhone display automatically adjusts depending on the orientation of your device. When you have your iPhone positioned vertically, the screen orients into portrait mode. If you are holding it horizontally, your screen will switch to the landscape mode.


2 Answers

In your project target, go to General, then in the Development Info section follow the attached images:

1-Make sure that your app is set to Universal for the supported devices

2-Chose iPhone and check Portrait.

3-Chose iPad and check Landscape.

iPhone PortraitiPad Landscape

like image 172
Mutawe Avatar answered Oct 08 '22 14:10

Mutawe


In Xcode 9.2 have no option for selecting the orientation for ipad and iphone

enter image description here

but we can able to change it in by info.plist whatever orientation we should need.. its much easy too.

enter image description here

Reference : iPhone portrait-only app starts as landscape on iPad

like image 8
Hari Narayanan Avatar answered Oct 08 '22 13:10

Hari Narayanan