【发布时间】:2013-10-13 22:51:26
【问题描述】:
当我的应用程序在iPhone 下运行时,我需要设置Portrait 模式,在iPad 下运行时,我需要设置Landscape 模式。
我在info.plist 中有更改,但我无法为iPad 或iPhone 设置它。
【问题讨论】:
标签: iphone ios ipad landscape portrait
当我的应用程序在iPhone 下运行时,我需要设置Portrait 模式,在iPad 下运行时,我需要设置Landscape 模式。
我在info.plist 中有更改,但我无法为iPad 或iPhone 设置它。
【问题讨论】:
标签: iphone ios ipad landscape portrait
在 Xcode 9.2 中没有选择 ipad 和 iphone 方向的选项
但我们可以通过 info.plist 将其更改为我们需要的任何方向.. 这也很容易。
【讨论】:
在您的project target 中,转到General,然后在Development Info 部分中按照所附图片进行操作:
1-确保您的应用设置为Universal 以支持设备
2-选择 iPhone 并检查肖像。
3-选择 iPad 并检查横向。
【讨论】:
在这里查看 iPad:
http://developer.appcelerator.com/question/134746/use-only-portrait-mode-on-ipad
这里适用于 iPhone: how to support landscape/Portrait orientation only for one UIView
只是一个快速的谷歌..
【讨论】: