【问题标题】:iOS 7 BarTintColoriOS 7 BarTintColor
【发布时间】:2013-11-07 11:06:04
【问题描述】:

有没有其他人注意到在 iOS7 中,如果 barTintColor 设置为默认值,半透明导航栏只有在下方显示颜色?

我尝试将 barTintColor 设置为各种不同的颜色,但导航栏下方的任何内容都显示为黑色模糊。而如果 barTintColor 设置为默认值,则所有元素都会在下方正确显示。

有没有办法强制它显示正确的颜色?

【问题讨论】:

    标签: user-interface ios7 uinavigationbar bartintcolor


    【解决方案1】:

    你必须使用背景色而不是色调。

    self.navigationController.navigationBar.backgroundColor = [UIColor yellowColor];

    如果您使用的是 tint color,它只会改变 barbutton 背景颜色的变化。

    【讨论】:

    • 嗨,Abha,使用背景颜色会失去条形图的半透明性。我想保持导航栏的半透明。
    【解决方案2】:

    在情节提要的 MyTabBarController 中选择颜色。您将更改按钮活动颜色背景。不知道不活跃的。

    【讨论】:

      猜你喜欢
      • 2017-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-05
      • 1970-01-01
      • 2014-07-07
      • 2017-02-11
      • 1970-01-01
      相关资源
      最近更新 更多