设备方向颠倒不起作用

时间:2016-04-07 19:33:11

标签: ios iphone swift ios9 uiinterfaceorientation

我有一个用swift编码的单个视图应用程序。

我已设置设备方向纵向和上下颠倒。不支持横向方向。

在SIM卡和5秒钟内运行时,设备倒置无效,UI仍保留在库存portrait位置。

我已经检查了故事板orientation,这将被推断。

我明显错过了一些东西,所以任何帮助都会受到赞赏。

我定位IOS 9.0, building using XCode 7.3(7D175)。

1 个答案:

答案 0 :(得分:0)

尝试将其放在plist文件上

<key>UISupportedInterfaceOrientations</key>
<array>
    <string>UIInterfaceOrientationPortrait</string>
    <string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>

并在部署信息上的常规标签上验证您的目标,以便:

enter image description here