Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where to change color of the statusbar during startup when Default.png is displayed

I have an app that sets the statusbar color like this

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{   
    [application setStatusBarStyle:UIStatusBarStyleBlackTranslucent];
    ...
}

Yet during startup when my Default.png is displayed a grey status bar is displayed.

I'd like to know how to display the black style also on startup...

like image 232
Jakob Avatar asked Jan 15 '12 13:01

Jakob


1 Answers

If you are looking to change it once and only once, the best place to do this is in your application's plist.

You can add:

<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleBlackTranslucent</string>

or if viewing as Property List

Status bar style          Translucent black style

Just right click and "Add row", Status bar style will be an available option, with Translucent black style as the available field.

like image 122
MarkPowell Avatar answered Nov 14 '22 21:11

MarkPowell