How to make an ipad app only portrait?

旧时模样 提交于 2019-12-18 16:38:10

问题


I am making an ipad app, and i set the the app to only portrait, but it still works in landscape? Why is this happening only on an ipad? How do i fix this?

Note: if the answer is in code, please write it in swift.


回答1:


In xcode select your project. Go to Targets -> General, scroll down and you can select the Orientation as portrait only.

You can also make change to info.plist file to select proper orientations for Supported interface orientations (iPad)




回答2:


In deployment Info section you can select your app orientation to support.

来源:https://stackoverflow.com/questions/29779330/how-to-make-an-ipad-app-only-portrait

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