首先,可以通过 Targets -> General 中配置,具体如下图所示:
其次,可以通过 Targets -> info 中进行配置,其中分为两种展现形式,可视化列表或者是代码 code 的形式,
可以在 info 文件的基础上右键进行切换形式.

如下是一次对应上下左右的配置 code:
1)上 <string>UIInterfaceOrientationPortrait</string>
2)下 <string>UIInterfaceOrientationPortraitUpsideDown</string>
3)左 <string>UIInterfaceOrientationLandscapeLeft</string>
4)右 <string>UIInterfaceOrientationLandscapeRight</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array&

本文介绍如何通过Xcode配置iOS应用的方向支持,包括iPhone和iPad的不同设置方式。首先可通过Targets->General进行基本配置,其次可在Targets->info中进行更详细的设置,包括支持的方向类型。

230

被折叠的 条评论
为什么被折叠?



