Set Status Bar Tint Colour

前端 未结 3 1397
囚心锁ツ
囚心锁ツ 2021-01-23 07:05

I have an tabbed bar application and the status bar tint colour is set to default - so it is always my selected blue colour throughout my app.

However, in one view, I am

3条回答
  •  情歌与酒
    2021-01-23 07:16

    If you are using iOS 6.0, you can set status bar color through plist file. See - How to set status bar tint color on iOS 6?

    From iOS 6 release notes;

    Status Bar

    It is now possible to set status bar tint parameters in your app’s Info.plist file. You might do this to ensure that the status bar color matches your app’s navigation bar color during startup. To set the status bar tint, add the UIStatusBarTintParameters key to your Info.plist file. The value of this key is a dictionary with the appropriate values describing the navigation bar your app has at startup. Inside the dictionary should be the UINavigationBar key, which has a value that is also a dictionary. That dictionary contains the initial navigation bar’s style (with the Style key) and indicates whether it is translucent (with the Translucent key). You can also specify your navigation bar’s tint color (with the TintColor key) or the name of its custom background image (with the BackgroundImage key).

    [EDIT]

    It seems in iOS 6 the status bar color is automatically determined by the navigation bar color. Before hiding navigation bar can you set the color of navigation bar to your default and see if that makes any difference.

提交回复
热议问题