I need to change the colour of my cell upon selection to a desired UI Color. Below is my code, and it is working fine. However, why the checkbox area is still in grey colour? How do I change that?
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
let selectedCell:UITableViewCell = tableView.cellForRowAtIndexPath(indexPath)!
selectedCell.contentView.backgroundColor = UIColor(red: 43.0/255.0, green: 240.0/255.0, blue: 12.0/255.0, alpha: 1.0)
}
I don't have enough reputations to post images. Sorry in advance!
Image