Home > DeveloperSection > Forums > How to change UITableView checkmark color in iOS?
Steven Hill
Steven Hill

Total Post:10

Posted on    December-22-2015 12:41 AM

 iPhone iPhone  Ios  Objective C 

 1 Reply(s)
 965  View(s)
Rate this:
I want to change checkmark color of our table view in our iPhone application.
I have tried to search but don't find any better solution.
Please help me.

Tarun Kumar

Total Post:210

Posted on    December-22-2015 10:36 PM

I read the Apple's documentation and found that there is no public way to change the color of the checkmark.
So, in my according you can do it with an image. To do it, just set the accesoryView property of the cell to a UIImageView containing a checkmark of the correct color.
here is the code:

UIImageView *checkmark = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"checkMarkName.png"]];
cell.accessoryView = checkmark;
[checkmark release];

Don't want to miss updates? Please click the below button!

Follow MindStick