Status bar won't go away on scaled up version of iOS 7 app

前端 未结 2 1351
太阳男子
太阳男子 2021-01-13 10:05

I have tried everything suggested here: Status bar won't disappear to no avail.

My iPhone version of my app has no status bar shown, but on my iPad,

相关标签:
2条回答
  • 2021-01-13 10:57

    Have you already, on your info.plist file, added two new attributes if not present? Please try setting "Status bar is initially hidden" to "YES" and also set "UIViewControllerBasedStatusBarAppearance" to "NO". This will hide status bar for your app.

    0 讨论(0)
  • 2021-01-13 11:03

    For 2016 onwards all you do is:

    Add these two items to your plist:

    <key>UIStatusBarHidden</key>
    <true/>
    <key>UIViewControllerBasedStatusBarAppearance</key>
    <false/>
    

    1. It is that simple

    2. There is no other method.

    (Note - there's a (pointless) "hide status bar" checkbox in "general settings" "deployment info" section. This simply reads the plist file, it's a completely pointless checkbox.)


    Historic answers...

    I've removed the historic answers as they are completely useless. (If any historians need to read it, click "edit history".)

    0 讨论(0)
提交回复
热议问题