UITableView change header title color

后端 未结 6 646
隐瞒了意图╮
隐瞒了意图╮ 2021-02-13 10:18

I\'m styling the UITableView in InAppSettingsKit and want to change the color of the header title:

\"image

6条回答
  •  面向向阳花
    2021-02-13 10:33

    You can try following line of code in table cell creation method -

    cell.textLabel.backgroundColor = //Your color;
    cell.detailTextLabel.backgroundColor = //Your color;
    

    You can refer following for more detail description, where you can find detail example of creating custom sectioned table similar to what you have mentioned - http://undefinedvalue.com/2009/08/25/changing-background-color-and-section-header-text-color-grouped-style-uitableview

提交回复
热议问题