【问题标题】:Set the navigation bar background color ios6ios6设置导航栏背景颜色
【发布时间】:2014-07-22 10:34:48
【问题描述】:

我在 iOS7 中使用[[UINavigationBar appearance] setBarTintColor:color]; 更改导航栏背景颜色,但在 iOS6 中不起作用。

【问题讨论】:

  • 这样解决问题` [[UINavigationBar appearance] setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault]; [[UINavigationBar 外观] setBackgroundColor:color];`

标签: ios6


【解决方案1】:

在 IOS 6 上试试这个:

[[UINavigationBar appearance] setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];
[[UINavigationBar appearance] setBackgroundColor:color];        

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-08-12
    • 1970-01-01
    • 2015-05-14
    • 1970-01-01
    • 2017-10-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多