Change color on checkmark in UITableView

后端 未结 15 2239
故里飘歌
故里飘歌 2020-12-07 22:31

Could someone be so kind to show me how to change the color on the checkmark in UITableView?

I have searched but don\'t seem to get it to work.

Cheers

15条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-07 23:30

    Since the iOS SDK has changed since the accepted answer, I thought I'd just update with a new answer.

    You can in fact change the color of the checkmark in a UITableViewCell by adjusting the tintColor property of the UITableViewCell.

    You can also set an appearance proxy for all UITableViewCells so that ALL instances have a specific tint color unless otherwise specified

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

提交回复
热议问题