deselectRow(_:)
Deselects the row at the specified index if it’s selected.
Declaration
func deselectRow(_ row: Int)Parameters
- row:
The index of the row to deselect.
Discussion
Deselects the row at rowIndex if it’s selected, regardless of whether empty selection is allowed.
If the selection does in fact change, posts selectionDidChangeNotification to the default notification center.
If the indicated row was the last row selected by the user, the row nearest it effectively becomes the last selected row. In case of a tie, priority is given to the row above.
This method doesn’t check with the delegate before changing the selection.