Add/Remove Multiple Checkmarks on Selected Rows in Swift 4 UITableView [duplicate]
问题 This question already has answers here : UITableViewCell checkmark to be toggled on and off when tapped (11 answers) Closed last year . Asking because all solutions available are for Swift 3. Also, I am dealing with a problem that when I scroll up and down after highlighting + selecting a row, new rows that appear with the same indexPath (after scrolling) will also be checked (but not highlighted). func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { if let cell =