iPhone仅限肖像应用程序在iPad上以横向方式启动 [英] iPhone portrait-only app starts as landscape on iPad
本文介绍了iPhone仅限肖像应用程序在iPad上以横向方式启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个iOS应用程序,其中包含以下设置:
I have an iOS app with the following settings:
设备:iPhone
设备方向:纵向
然而,当我开始使用面向横向的iPad时,它会以横向模式显示启动屏幕(未正确调整大小),并且主屏幕x / y坐标得到在viewDidLoad中切换(尽管主屏幕以纵向显示)。当我在iPhone上运行时,这不会发生。
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
推荐答案
看一下你app的info.plist文件:
Take a look at you app's info.plist file:
如果需要,请更改配置。
Change the config if need.
这篇关于iPhone仅限肖像应用程序在iPad上以横向方式启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文