Is it possible to get rid of the status bar in iOS7 when using Phonegap Build 3.1? I can remove the status bar when building locally in Xcode, but as soon as I try Phonegap Build, it's back again.
I do not want the status bar to push down the app view 20px, which is the case now.
As of Phonegap 3 you can now customize plist files via config.xml.
Code:
<gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance" overwrite="true"> <false/> </gap:config-file>
Usually, you would edit the info.plist and add this key:
<key>UIViewControllerBasedStatusBarAppearance</key><false/>
But as you can't do this on build, you'll have to add a plugin:
https://github.com/phonegap-build/StatusBarPlugin/blob/master/README.md
And then:
StatusBar.hide();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With