View Full Version : Change Status Bar to Black?

Mac Me Up
Aug 22, 2008, 09:55 PM
I've been digging through the apple documentation, but I can't seem to find how some apps change the colour of the status bar (with your signal strength, etc in it) to black? I'm guessing it's just a one line call somewhere?

Aug 23, 2008, 03:11 AM
Look for the setStatusBarStyle:animated: method of UIApplication

Aug 23, 2008, 03:27 AM
You may also want to set UIStatusBarStyle = UIStatusBarStyleOpaqueBlack in your Info.plist, so that the Default.png shows a black status bar instead of the gray one before your application is loaded.

Aug 23, 2008, 09:28 AM
This is a very similar question to the OP, but is there any way to change the navbar-style to black through the info.plist as well? Right now I am doing it through code, and while this works it creates a bit of a delay, where first the navbar is black and then after about a second, once the program loads properly turns black.

Thank you :)

Aug 23, 2008, 12:22 PM
How do you create the nav bar ? With a xib ? If so, then you can change it in IB I think.

Feb 4, 2009, 02:04 PM
Just to help anyone else who stumbles across this...

The correct item to add to the Info.plist is:

UIStatusBarStyle = UIStatusBarStyleBlackOpaque

(There's no code completion when editing Info.plist, so if it's not working check that you've got the spelling *exactly* right.)