Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS: Black Status Bar when loading image is shown

How can I load my app and have the black status bar shown while my loading (Default.png) is shown? Currently it always uses the grey status bar, but changes to black when my app finally loads.

I already have

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque];

in my didFinishLaunchingWithOptions: method.

like image 502
Nic Hubbard Avatar asked Dec 23 '11 06:12

Nic Hubbard


2 Answers

In your applications info.plist file, add the key UIStatusBarStyle and choose your desired style from the options. If you do this you don't need to set the style on didFinishLaunching.

This should be in the default info.plist in my opinion, but I'm sure there's a good reason why it isn't.

More information here.

like image 174
jrturton Avatar answered Oct 02 '22 17:10

jrturton


It might be useful, I haven't checked, to change the style of status bar in .plist file in your application.

like image 36
Hiren Avatar answered Oct 02 '22 17:10

Hiren