仅为iPad设置横向方向而不是iPhone [英] Set Landscape Orientation for iPad Only NOT iPhone

查看:90
本文介绍了仅为iPad设置横向方向而不是iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的xCode项目中有一个iPhone Storyboard和iPad Storyboard。在我的iPhone版本中,我只想要肖像模式(已经存在)。

I have an iPhone Storyboard and iPad Storyboard in my xCode project. In my iPhone version, I only want portrait mode to work (which is already there).

现在,我已经为iPad添加了一个故事板,但iPad只能用于人像模式。但是,我希望iPad能够在人像和风景中工作,iPhone仍然只能作为肖像

Now, I have added a storyboard for iPad, but iPad is working only with Portrait mode. However, I want the iPad to work in Portrait and Landscape and the iPhone to remain as portrait only

请提供建议。

推荐答案

选择您的项目 - >目标 - >部署信息 - > iPhone。
和复选标记如下:

Select your project -> Target -> Deployement info -> iPhone. and checkmark as follow:

for iPhone:

for iPhone:

适用于iPad:

这篇关于仅为iPad设置横向方向而不是iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆