ins*_*man 11 screen-orientation ios
我正在开发一个具有以下要求的Universal项目:
我如何为iOS 8(Swift)做到这一点?
ins*_*man 33
根据@ScarletMerlin的建议,在我看来,更改info.plist中的键是我必须满足的要求的最佳解决方案(每种设备的固定方向类型).
这是我使用的设置的打印屏幕.也许它可以帮助其他有类似疑问的开发人员.

相关源代码如下所示:
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
Run Code Online (Sandbox Code Playgroud)