How do I disable landscape orientation in iPhone but keep it enabled on iPad?

本秂侑毒 提交于 2019-12-18 11:51:51

问题


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.

Any ideas?


回答1:


In Xcode 6 you have to edit Info.plist:



来源:https://stackoverflow.com/questions/26552519/how-do-i-disable-landscape-orientation-in-iphone-but-keep-it-enabled-on-ipad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!