10

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

Rendy
  • 5,572
  • 15
  • 52
  • 95

5 Answers5

22

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.

Brody Robertson
  • 8,506
  • 2
  • 47
  • 42
  • I don't think you'll be able to achieve the gradient in the status bar anymore. You could at least reproduce the flat gray color by using my approach above. – Brody Robertson Oct 25 '12 at 18:39
  • +1 for the great example images showing what you mean. I didn't know it was "average of bottom row of pixels", and the image shows that very clearly, thanks – Adam Sep 27 '13 at 08:45
12
[[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleBlackOpaque];

or

[[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleBlackTranslucent];

are the options available apart from default

AppleDelegate
  • 4,269
  • 1
  • 20
  • 27
  • hmm this will display black or gray color..i want the status bar color like in my picture..gradient from light gray to dark gray.. – Rendy Oct 18 '12 at 01:45
  • @AppleDelegate this wont work, here it needs to add a custom color, do you have any alternate solutions? – DD_ Dec 17 '12 at 04:56
3

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

Mutawe
  • 6,464
  • 3
  • 47
  • 90
2

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.

Tomohisa Takaoka
  • 885
  • 5
  • 16
0

I suspect 'Default' doesn't necessarily give gray in iOS 6.

How about setting the custom tint to gray?

Snips
  • 6,575
  • 7
  • 40
  • 64