Status bar color in iOS 6?

后端 未结 5 1588
余生分开走
余生分开走 2021-02-03 12:00

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

相关标签:
5条回答
  • 2021-02-03 12:11

    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.

    0 讨论(0)
  • 2021-02-03 12:11

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

    How about setting the custom tint to gray?

    0 讨论(0)
  • 2021-02-03 12:12
    [[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleBlackOpaque];
    

    or

    [[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleBlackTranslucent];
    

    are the options available apart from default

    0 讨论(0)
  • 2021-02-03 12:14

    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.

    0 讨论(0)
  • 2021-02-03 12:26

    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

    0 讨论(0)
提交回复
热议问题