【问题标题】:How to change text color of table header on iOS 5?如何在 iOS 5 上更改表格标题的文本颜色?
【发布时间】:2013-09-30 16:55:34
【问题描述】:

如何在不使用viewForHeaderInSection 创建整个表头视图的情况下更改iOS 5 上表头的文本颜色?

【问题讨论】:

    标签: uitableview ios5


    【解决方案1】:

    添加viewDidLoad:

        [[UILabel appearanceWhenContainedIn:[UITableViewHeaderFooterView class], nil] setTextColor:[UIColor whiteColor]];
        [[UILabel appearanceWhenContainedIn:[UITableViewHeaderFooterView class], nil] setShadowColor:[UIColor clearColor]];
    

    【讨论】:

      猜你喜欢
      • 2018-11-18
      • 2012-01-14
      • 1970-01-01
      • 1970-01-01
      • 2021-11-02
      • 2021-06-17
      • 1970-01-01
      • 2019-01-13
      • 2017-07-11
      相关资源
      最近更新 更多