HOW TO CHANGE UITABLEVIEW CHECKMARK COLOR IN IOS?

Steven Hill

Total Post:10

Points:72
Posted by  Steven Hill
 1927  View(s)
Ratings:
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.
  1. Tarun Kumar

    Post:214

    Points:1642
    Re: How to change UITableView checkmark color in iOS?

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!