Вопрос

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