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
.
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.
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.
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.
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.
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.
In Xcode 9.2 have no option for selecting the orientation for ipad and iphone
but we can able to change it in by info.plist whatever orientation we should need.. its much easy too.
Reference : iPhone portrait-only app starts as landscape on iPad
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With