【问题标题】:Issue of tintColor for navigation bar in iOS 4 and iOS 5iOS 4 和 iOS 5 中导航栏的 tintColor 问题
【发布时间】:2012-05-27 09:44:42
【问题描述】:

我已经为导航栏设置了色调

self.navigationController.navigationBar.tintColor = 
    [UIColor colorWithRed:168.0/255.0 green:0.0/255.0 blue:0.0/255.0 alpha:1.0];

这适用于 iOS 5 及更高版本。但在 iOS 4 及以下 iOS 5 中,它只是黑色。色调颜色未设置。

【问题讨论】:

  • 用 [UIColor redColor] 测试;那行得通吗?
  • 不,它不起作用.. :(

标签: ios5 ios4 uinavigationbar tintcolor


【解决方案1】:

对于 UISWitch tintColor 仅适用于 IOS 6.0 及更高版本。 所以可能在 IOS 5.0 上应该会崩溃

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-14
    相关资源
    最近更新 更多