简体   繁体   English

Ipad在横向模式下和iphone在纵向模式下

[英]Ipad in landscape mode and iphone in portrait mode

I need to set Portrait mode when my application is running in a iPhone and in Landscape mode when running in iPad . 当我的应用程序在iPhone运行时我需要设置Portrait模式,在iPad运行时需要设置为Landscape模式。 I have change in info.plist but i can't set it for iPad or iPhone . 我在info.plist有变化但我无法为iPadiPhone设置它。

In your project target , go to General , then in the Development Info section follow the attached images: project target ,转到“ General ,然后在“ Development Info部分中,按照附加的图像进行操作:

1-Make sure that your app is set to Universal for the supported devices 1 - 确保您的应用设置为支持设备的Universal

2-Chose iPhone and check Portrait. 2 - 选择iPhone并检查人像。

3-Chose iPad and check Landscape. 3-Chose iPad并检查横向。

iPhone肖像iPad风景

In Xcode 9.2 have no option for selecting the orientation for ipad and iphone 在Xcode 9.2中没有选择ipad和iphone方向的选项

在此输入图像描述

but we can able to change it in by info.plist whatever orientation we should need.. its much easy too. 但我们可以通过info.plist改变它,无论我们需要什么方向......它也很容易。

在此输入图像描述

Reference : iPhone portrait-only app starts as landscape on iPad 参考: iPhone仅肖像应用程序在iPad上以横向方式启动

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

相关问题 在纵向和横向模式下自动调整iPhone / iPad画廊的图像大小 - Auto image resize for iPhone/iPad gallery in portrait & landscape mode 应用程序支持ipad和iphone中的应用程序横向和纵向模式 - App support the app Landscape and portrait mode in both ipad and iphone iPhone:纵向转横向模式有问题吗? - iPhone: Portrait to Landscape mode question? 横向模式仅适用于iPhone或iPad - Landscape Mode ONLY for iPhone or iPad iPhone应用程序在横向和纵向模式下都可以正常工作,但在iPad上只能在一种模式下工作? - Iphone app is working fine in both landscape and portrait mode but in ipad it only works in one mode? 在 iPad 中设置纵向和横向模式的启动图像 - Setting splash images for portrait and landscape mode in iPad 从横向iPhone的肖像模式? - iphone force portrait mode from landscape? iPhone横向宽度以纵向模式的宽度 - iphone landscape width taking the width of portrait mode 如何设计仅在ipad的横向模式和iPhone的纵向模式下运行的iOS应用? - How to design an iOS app which runs only in landscape mode in ipad and portrait in iPhone? iPad兼容模式下的iPhone应用程序在横向上有奇怪的布局(我强迫肖像) - iPhone app on iPad compatibility mode has strange layout in landscape (while I force portrait)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM