tags:

views:

73

answers:

2

Hello all,

I am trying to change the status bar color to Black translucent. I have changed my Info.plist UIStatusBarStyle UIStatusBarStyleBlackTranslucent

And I have added these lines of code also to applicationDidFinishLaunching:()

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:NO];

After doing these changes, my status bar changes to black translucent, till my splash screen appears. Once, my application is loaded fully and when the contents are displayed, it is again back to the default gray color.Can anyone please tell me where I am going wrong or where i should change?

Thanks in advance.

A: 

You'll want to set the UIStatusBarStyle key (also diplayed as "status bar style") in your app's Info.plist to UIStatusBarStyleBlackTranslucent.

bosmacs
I tried it, but it didnt work...:( Any other possibilities, please let me know..
jeevangs
Is this on iPhone or iPad? I don't think iPad supports `UIStatusBarStyleBlackTranslucent`.
bosmacs
This is in iphone only. As soon as my application gets loaded, it is showing only the default gray status bar
jeevangs
A: 

Right click on your info.plist and "Add Row". From there you can select what you want to add. There is a value called "Status bar style". Pick that. The corresponding value can also be pulled down and you can pick from gray, black with alpha .5, black.

Save, reload your app. That's all I had to do.

(I know the qn is 1 month old but I thought I'd leave the answer here anyway in case ppl search for it).

dineth