swift - How to change UITableViewCellAccessoryType.Checkmark's color? -
here's code:
cell.accessorytype = uitableviewcellaccessorytype.checkmark
but when run app, can't see checkmark.
then set background color black, , can see white checkmark.
how change checkmark's color other colors blue?
yes can it.
just set tintcolor
of cell.
cell.tintcolor = uicolor.whitecolor() cell.accessorytype = uitableviewcellaccessorytype.checkmark
swift 3
let acell = tableview.dequeuereusablecell(withidentifier: "cell")! acell.tintcolor = uicolor.red acell.accessorytype = .checkmark return acell
you can attributes inspector
Comments
Post a Comment