Reputation: 5698
Is there any way to have this status bar in iOS 6?
In previous version of iOS, it has that status bar, but in iOS 6 it seems to follow the navigation bar color..
Upvotes: 10
Views: 18883
Reputation: 885
I've found out in iOS6, you can not get gray "former default" style. All parameter in info.plist and
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque];
either setting can not give you light gray in iOS6. In iOS5,
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
This was what you needed. So iOS6 eliminated gray bar style.
Upvotes: 2
Reputation: 8604
In iOS 6 the status bar color is now automatically determined by the navigation bar colors. To be specific the color is determined by the average color of the bottom pixel of the navigation bar as seen below:
I am not sure if there is any other way to override this new operation.
Upvotes: 22
Reputation: 6773
I suspect 'Default' doesn't necessarily give gray in iOS 6.
How about setting the custom tint to gray?
Upvotes: 0
Reputation: 4249
[[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleBlackOpaque];
or
[[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleBlackTranslucent];
are the options available apart from default
Upvotes: 12
Reputation: 6524
You can do it by change the status bar properties as follows:
1-Go to your project target.
2-Choose summary tap.
3-Go to status bar section.
4-Customize it as you like.
Upvotes: 3