xcode 仅限 iPad 方向纵向
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15405023/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iPad orientation portrait only
提问by user1047504
I set Project Summary > iPhone / iPod Deployment Info > Supported Interface Orientations to portrait only mode.
我将项目摘要 > iPhone / iPod 部署信息 > 支持的界面方向设置为仅纵向模式。
This work well on All simulatiors , iPad(iOS 5.1) and iPhone(iOS 6.1).
这适用于所有模拟器、iPad(iOS 5.1) 和 iPhone(iOS 6.1)。
But after I upgrade iOS on iPad from 5.1 to 6.1.2 then
但是在我将 iPad 上的 iOS 从 5.1 升级到 6.1.2 之后
The application running on iPad become landscape (left+right) mode at application start up.
在 iPad 上运行的应用程序在应用程序启动时变为横向(左+右)模式。
How could I fix this?
我怎么能解决这个问题?
回答by konrad.bajtyngier
Try going to YourApp-Info.plist file in Supporting Files and make sure the proper orientations are set for both Supported interface orientations
and Supported interface orientations (iPad)
尝试转到支持文件中的 YourApp-Info.plist 文件,并确保为Supported interface orientations
和Supported interface orientations (iPad)
回答by Roel van Roozendaal
Add the UISupportedInterfaceOrientation
into your info.plist, with a setting for each orientation you support.
添加UISupportedInterfaceOrientation
到您的info.plist 中,并为您支持的每个方向设置一个。