How to change font color of the title in grouped type UITableView?

前端 未结 6 1598
轮回少年
轮回少年 2020-12-13 03:55

I have a grouped type table view and it looks pretty cool.

But, if I change the background color of the table to black, the titles becomes unclear.

Is it pos

6条回答
  •  无人及你
    2020-12-13 04:41

    Swift 4.2

    UILabel.appearance(whenContainedInInstancesOf: [UITableViewHeaderFooterView.self]).textColor = .white
    

提交回复
热议问题