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 

output

you can attributes inspector

output


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -