Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change color on checkmark in UITableView

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

like image 684
PeterK Avatar asked Oct 03 '11 22:10

PeterK


1 Answers

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]]; 

Swift: In Swift change the tintcolor to the color you want to change the color of any Accessory Type

cell.tintColor = .black 
like image 137
nvrtd frst Avatar answered Sep 24 '22 18:09

nvrtd frst