如何在iPhone中禁用横向方向但在iPad上启用它? [英] How do I disable landscape orientation in iPhone but keep it enabled on iPad?

查看:134
本文介绍了如何在iPhone中禁用横向方向但在iPad上启用它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望允许iPad上的应用轮换,但是想要在iPhone上禁用它,因为它太窄了。

I am looking to allow app rotation on an iPad, but would like to keep it disabled on the iPhone, as it is too narrow.

到目前为止,我只看到一个设备或另一个设备上的说明,但不能同时看到两者。

So far, I only see instructions on one device or the other, but not both.

任何想法?

推荐答案

在Xcode 6中你必须编辑 Info.plist

In Xcode 6 you have to edit Info.plist:


这篇关于如何在iPhone中禁用横向方向但在iPad上启用它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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