简体   繁体   English

以横向和纵向模式启动iPad应用程序

[英]Start iPad application both in landscape and portrait mode

Right now when I start my iPad application, if I'm turning my device in landscape mode then my rootConroller automatically turns my table from portrait to landscape mode. 现在,当我启动iPad应用程序时,如果要以横向模式旋转设备,则rootConroller会自动将桌子从纵向模式转换为横向模式。 The problem is that it does so by animating the transition. 问题在于它是通过动画过渡来实现的。 Instead I would like the app to start in landscape mode right away. 相反,我希望该应用程序立即以横向模式启动。 I've also created an image called Default-Landscape.png which is ignored, so I suspect I have to tweak something in the plist file? 我还创建了一个名为Default-Landscape.png的图像,该图像将被忽略,因此我怀疑必须在plist文件中进行一些调整吗?

在Info.plist文件中将方向设置为UISupportedInterfaceOrientations

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM