Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use black translucent status bar upon startup - info.plist key/value doesn't seem to work

I have no problem setting the status bar of my app in the app delegate didFinishLaunchingWithOptions: messsage.

However, the problem is, when my app is launched, the splash screen (default.png) is displayed with the standard colored status bar (some type of silver color). Then, once my app loads, it is changed to black translucent.

So... after doing a bit of research, I was told to add the following key/value to my info.plist file: UIStatusBarStyle as the key UIStatusBarStyleBlackTranslucent as the value

I've done that, rebuilt, etc. However, I don't see anything different. I still get the default status bar when the splash screen is displayed. Same result with simulator as well as device.

Any suggestions?

like image 639
bpatrick100 Avatar asked Mar 14 '11 22:03

bpatrick100


1 Answers

Yes, you can. The info.plist is loaded "before" the app launches, thus you can add a Status bar style key to it and set the value to your desired style. Now you will have the status bar changed right from the splash screen.

like image 174
Hlung Avatar answered Sep 21 '22 02:09

Hlung