I'm making an app with a multiple cell selection (I use checkmark) like this
The problem is that when I click on a cell, it remains gray and is really bad. How can I fix it?
I'm making an app with a multiple cell selection (I use checkmark) like this
The problem is that when I click on a cell, it remains gray and is really bad. How can I fix it?
If you do not want to show grey selection at all:
UITableViewCell
in Storyboard selected
to none
You can find more options to set it programatically in this answer.
try this code at didSelectRowAt#
cell.selectionStyle = UITableViewCellSelectionStyleNone
You can use this:
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
tableView.deselectRowAtIndexPath(indexPath, animated: true)
}
or
cell.selectionStyle = UITableViewCellSelectionStyle.None