Page 1 of 1

Changing the Background Color of Status Bar iOS

Posted: Sat Jul 12, 2014 10:23 am
by Leon van der Stokker

My issue is that I want to change the background color of the statusbar for iOS.
It's grey as default but it needs to be red. I really don't know how to fix this. Can please someone help me with this.


Changing the Background Color of Status Bar iOS

Posted: Sat Jul 12, 2014 2:39 pm
by Alena Prykhodko

Hi Leon,

To change header color, set in its Properties Class Name to 'classHeader' for example, than add new CSS asset with code:

pre.classHeader{
background-color: red !important;}/pre


Changing the Background Color of Status Bar iOS

Posted: Sat Jul 12, 2014 2:58 pm
by Leon van der Stokker

Hi Alena, Thank you for the reply. But what i mean is not the header but the bar above the header. Where you see the time and battery level. Leon


Changing the Background Color of Status Bar iOS

Posted: Sat Jul 12, 2014 3:02 pm
by Alena Prykhodko

Changing the Background Color of Status Bar iOS

Posted: Sun Jul 13, 2014 9:26 am
by Leon van der Stokker

The articles just don't give me the answer i am looking for.
When you start from scratch in xcode the statusbar code is placed in
didFinishLaunchingWithOptions: of AppDelegate.m. section.

You can reach this section in appery at the source section.
This is the code in the ApplicationDelegate.m file using apperio

/**

  • This is main kick off after the app inits, the views and Settings are setup here. (preferred - iOS4 and up)
    */

  • (BOOL) application:(UIApplication)application didFinishLaunchingWithOptions:(NSDictionary)launchOptions
    {

    Can you help me to fix this. It's a common feature that anyone would like to use.

    The article i find some help: http://www.appcoda.com/customize-navi...


Changing the Background Color of Status Bar iOS

Posted: Sun Jul 13, 2014 3:52 pm
by Illya Stepanov

Hi Leon - If you want to made changes in your project in xCode you can always do that, but this is outside the scope of our support.

As Alena suggested you the only way to change iOS status-bar appearance in Appery.io is by using PhoneGap plugin: https://github.com/apache/cordova-plu...

We will include it in every project by default in the nearest Appery.io release.