【问题标题】:Changing UIStatusBar color to specific color with RGB?使用 RGB 将 UIStatusBar 颜色更改为特定颜色?
【发布时间】:2015-07-20 21:29:56
【问题描述】:

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

我试过了(但我失败了)

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

【问题讨论】:

    标签: swift


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-02
      • 1970-01-01
      • 2020-05-25
      • 1970-01-01
      • 2022-01-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多