Changing the color of UITableView section headers

前端 未结 6 1288
抹茶落季
抹茶落季 2020-12-31 01:47

OK, I know that this has been asked previously, so please forgive me for asking again. It just seems like there has got to be an easier way to do this.

Is there a \

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-31 02:33

    With the newer UIAppearance way of doing things, in versions > iOS 6.0 you can just do, for example:

    [[UITableViewHeaderFooterView appearance] setTintColor:[UIColor redColor]];
    

提交回复
热议问题