【问题标题】:Changing Table View grouped style text color globally全局更改表格视图分组样式文本颜色
【发布时间】:2017-02-15 10:07:10
【问题描述】:

我想在全局部分分组标题中更改文本颜色。我试过了

    UITableViewHeaderFooterView.appearance().textLabel?.textColor = barColor
    UITableViewHeaderFooterView.appearance().textLabel?.backgroundColor = barColor

但这似乎不起作用

【问题讨论】:

标签: ios objective-c iphone swift tableview


【解决方案1】:
UILabel.appearance(whenContainedInInstancesOf: [UITableViewHeaderFooterView.self]).textColor = barColor

为我解决了这个问题。

来源:https://stackoverflow.com/a/30845710/6310412

【讨论】:

    猜你喜欢
    • 2011-01-29
    • 1970-01-01
    • 1970-01-01
    • 2010-10-30
    • 1970-01-01
    • 2014-06-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多