Posted by: bearc0025 | October 5, 2010

Setting iPhone Status/Carrier Bar to Black

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

- (void)applicationDidFinishLaunching:(UIApplication *)application {    
	[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque];
...
}

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):

	<key>UIStatusBarStyle</key>
	<string>UIStatusBarStyleBlackOpaque</string>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: