使用RGB将UIStatusBar颜色更改为特定颜色?

时间:2015-07-20 21:29:57

标签: swift

我想使用rgb更改UIStatusBar颜色。有可能吗?

我试过(但我失败了)

UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.UIColor(...)

1 个答案:

答案 0 :(得分:0)

据我所知,这是不可能的。您可以在.LightContent.Default之间切换。

同时看看这个:How to Change the status bar color using ios with swift on internet reachability?

这适用于电池,网络等的颜色。如果您不使用导航栏,可以通过在导航栏上设置背景颜色或在视图控制器内放置视图来设置背景颜色。

相关问题