How do I disable landscape-orientation on an iPad app?

后端 未结 8 1332
臣服心动
臣服心动 2021-02-01 12:41

I created a completely new, single-view iOS universal Swift app. Then, I unchecked \"Landscape Left\" and \"Landscape Right\" in the app settings. I ran it on my iPhone, and hoo

8条回答
  •  温柔的废话
    2021-02-01 13:17

    these process of override does not work now.. and only changing the UI supported interface oriatations for ipad in info.plist will only temporarily solve the problem but will create problem when you will go for app validation and app sumbmission to app store.. For successfully validating and submitting you have to also add the key

    "UIRequiresFullScreen"

    you have to modify the keys like this..

    UISupportedInterfaceOrientations~ipad
    
        UIInterfaceOrientationPortrait
        UIInterfaceOrientationPortraitUpsideDown
    
    UIRequiresFullScreen
    
    

    I have tested this...

提交回复
热议问题