【问题标题】:how to change the statusbar after didenterbackgroud?didenterbackground后如何更改状态栏?
【发布时间】:2012-09-20 04:26:13
【问题描述】:

我看到一个应用程序“睡眠周期”将状态栏颜色更改为红色并连续显示,即使应用程序在后台按主页按钮也是如此。 我知道如何显示通知,但它不会连续显示并改变颜色。有人知道吗?请帮忙。

【问题讨论】:

    标签: xcode apple-push-notifications statusbar


    【解决方案1】:

    它们是 3 种特殊的状态栏颜色:

    • 共享连接时蓝色
    • 通话时为绿色
    • 当应用程序在后台使用特殊电话功能(如麦克风)时显示红色

    在 iOS7 中,您可以通过以下任一方式更改应用程序中的状态栏

    • 如果你有一个 navigationController,设置 navigationBar 的 tintColor
    • 或者设置一个带有 {0,0,screenWidth,20} 框架的矩形视图

    【讨论】:

      猜你喜欢
      • 2021-05-14
      • 2021-11-05
      • 1970-01-01
      • 2021-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多