문제

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