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.

有帮助吗?

解决方案

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 Portrait iPad Landscape

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top