iPhone portrait-only app starts as landscape on iPad

帅比萌擦擦* 提交于 2019-12-24 09:42:53

问题


I have an iOS app with the following settings:

Devices: iPhone

Device orientation: Portrait

When I start on a landscape-oriented iPad, however, it shows the launch screen in landscape mode (not properly resized), and the main screen x/y coordinates get switched within viewDidLoad (although the main screen appears in portrait). This does not happen when I run it on iPhone.

Any idea how to prevent it? Thanks


回答1:


Take a look at you app's info.plist file:

Change the config if need.



来源:https://stackoverflow.com/questions/38520699/iphone-portrait-only-app-starts-as-landscape-on-ipad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!