Status bar color in iOS 6?

后端 未结 5 1596
余生分开走
余生分开走 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.

提交回复
热议问题