简体   繁体   English

在 iPhone 和 iPad 上支持不同的方向?

[英]Support different orientations on iPhone & iPad?

I want to support both portrait and landscape on iPad, but only portrait on iPhone.我想在 iPad 上支持纵向和横向,但在 iPhone 上只支持纵向。 Is it possible?可能吗? What is the best way to do this?做这个的最好方式是什么?

There's only one set of "Device orientation" checkboxes in the project settings.项目设置中只有一组“设备方向”复选框。

You can edit the info.plist file as per your needs manually.您可以根据需要手动编辑info.plist文件。

Notice, iPad orientation is separate from the default phone orientation.请注意,iPad 方向与默认手机方向是分开的。

在此处输入图像描述

There's only one set of "Device orientation" checkboxes in the project settings.项目设置中只有一组“设备方向”复选框。

Yes, and you use it like this:是的,你像这样使用它:

  1. Check just iPhone.只检查 iPhone。

  2. Check just portrait.只检查肖像。

  3. Check just iPad.只检查 iPad。

  4. Check all four orientations.检查所有四个方向。

  5. Check both iPhone and iPad.检查 iPhone 和 iPad。

I know it's confusing, but that will do what you want.我知道这很令人困惑,但这会做你想要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以为cordova中的IPad和IPhone(通用)应用设置不同的方向吗? - Can i set different orientations for IPad and IPhone (Universal) app in cordova? iPad 多任务支持需要这些方向 - iPad Multitasking support requires these orientations 支持iPhone 6和iPhone 6+,具有不同的启动/启动屏幕图像,适用于iPad纵向和横向方向 - Supporting iPhone 6 and iPhone 6+ with different launch/splash screen image for iPad Portrait and Landscape orientations 在 iPad 中处理不同方向的最佳方法 - The best way to handle different orientations in an iPad 支持所有方向而无需在iPhone中自动旋转 - Support all orientations without autorotate in iPhone 如何获得不同方向的iPad屏幕尺寸? - How to get iPad screen size in different orientations? 如何调整iPad的不同方向的图像大小 - How to resize an image for different orientations of iPad 使用故事板支持iPAD上多个方向的最佳方法(无AutoLayout或AutoResizing) - best method to support multiple orientations on iPAD with storyboards (no AutoLayout or AutoResizing) 允许一个视图支持多种方向,而其他视图不支持iPhone - Allow One View to Support Multiple Orientations While Others Do Not iPhone iPhone 4和iPad的限制不同 - Constrains different on iPhone 4 and iPad
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM