Skip to content

Setting iPhone Status/Carrier Bar to Black

In the code, you can set it using the various styles like…

[sourcecode]
– (void)applicationDidFinishLaunching:(UIApplication *)application {
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque];

}
[/sourcecode]

However, as implied by the method name, the earliest this will happen is after the app finished launching.

To change the color during launch, add this to your info plist file (it uses the same constants as the method call):

[sourcecode]
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleBlackOpaque</string>
[/sourcecode]