iosuitableviewswiftxcode6accessorytype

Change color of accessoryType Swift


I'd like to change the color of my cell accessoryType from blue to white. The textColor is already set to white. Does someone of you guys know how to do this?

My Code:

cell!.accessoryType = UITableViewCellAccessoryType.Checkmark


Solution

  • You can set your UITableViewCell tintColor property to the desired color:

    [cell setTintColor:[UIColor whiteColor]];