Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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, which runs the scaled up version of my iPhone version, there is a status bar that won't go away!

If it makes a difference, my app uses the devices camera for a majority of the app. If you need more info/code, don't hesitate to ask! My app is iOS 7 only, and I use Xcode 5. Also, I would like the status bar gone in the whole app.

Do not suggest UIViewControllerBasedStatusBar in the plist-- it does not work.


Related Articles

https://stackoverflow.com/a/18740897/294884

https://stackoverflow.com/a/21034908/294884

https://stackoverflow.com/a/20307841/294884

like image 991
Branch Avatar asked Oct 20 '22 10:10

Branch


1 Answers

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".)

like image 173
Fattie Avatar answered Oct 23 '22 02:10

Fattie