Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Status bar color in iOS 6?

Tags:

ios

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..

status bar

like image 680
Rendy Avatar asked Oct 17 '12 09:10

Rendy


4 Answers

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: enter image description here

I am not sure if there is any other way to override this new operation.

like image 110
Brody Robertson Avatar answered Nov 07 '22 17:11

Brody Robertson


[[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleBlackOpaque];

or

[[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleBlackTranslucent];

are the options available apart from default

like image 22
AppleDelegate Avatar answered Nov 07 '22 19:11

AppleDelegate


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.

like image 2
Tomohisa Takaoka Avatar answered Nov 07 '22 18:11

Tomohisa Takaoka


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.

HOW TO CHANGE

like image 3
Mutawe Avatar answered Nov 07 '22 18:11

Mutawe