Lock screen Orientation to portrait - ios swift

我与影子孤独终老i 提交于 2019-12-03 05:56:30

Go To Target --> General and set Orientation Mode to Portrait.

Also check info.plist. Make sure Supported Interface Orientations contains only one value(Portrait). Sometime it removes from settings but not updated in plist file.

If your app is not supporting split screen view than you should check the option to Require full screen. This fixed my issue with portrait mode.

If this does not resolve issue add Supported interface orientations Key of Array type in your info.plist. And String item to that array with value Portrait (bottom home button)

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