tableView(_:didDeselectRowAt:)
Tells the delegate that the specified row is now deselected.
Declaration
optional func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath)Parameters
- tableView:
A table view informing the delegate about the row deselection.
- indexPath:
An index path locating the deselected row in
tableView.
Discussion
The delegate handles row deselections in this method. It could, for example, remove the check-mark image (UITableViewCell.AccessoryType.checkmark) associated with the row.
See Also
Responding to row selections
Handling row selection in a table viewSelecting multiple items with a two-finger pan gesturetableView(_:willSelectRowAt:)tableView(_:didSelectRowAt:)tableView(_:willDeselectRowAt:)tableView(_:shouldBeginMultipleSelectionInteractionAt:)tableView(_:didBeginMultipleSelectionInteractionAt:)tableViewDidEndMultipleSelectionInteraction(_:)