Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set light-content style to status bar in a phonegap app?

Tags:

ios7

cordova

I'm new to phonegap and i try to set the status bar to the new light-content ios7 style.

Is there a possibility to do that yet?

My status bar looks like that... enter image description here

... but I want to have this: enter image description here

Thanks so much for any help :-)

like image 254
Tobias Bambullis Avatar asked Oct 11 '13 23:10

Tobias Bambullis


1 Answers

Open your info.plist (resources folder):

  • set: "View controller-based status bar appearance" to NO
  • set: "Status bar style" to "UIStatusBarStyleLightContent".

like this:

<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>

<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
like image 179
benka Avatar answered Sep 20 '22 05:09

benka