---
title: "tableView(_:didDeselectRowAt:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitableviewdelegate/tableview(_:diddeselectrowat:)"
---

# tableView(_:didDeselectRowAt:)

Tells the delegate that the specified row is now deselected.

## Declaration

```swift
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

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 view](uikit/handling-row-selection-in-a-table-view.md)
- [Selecting multiple items with a two-finger pan gesture](uikit/selecting-multiple-items-with-a-two-finger-pan-gesture.md)
- [tableView(_:willSelectRowAt:)](uikit/uitableviewdelegate/tableview(_:willselectrowat:).md)
- [tableView(_:didSelectRowAt:)](uikit/uitableviewdelegate/tableview(_:didselectrowat:).md)
- [tableView(_:willDeselectRowAt:)](uikit/uitableviewdelegate/tableview(_:willdeselectrowat:).md)
- [tableView(_:shouldBeginMultipleSelectionInteractionAt:)](uikit/uitableviewdelegate/tableview(_:shouldbeginmultipleselectioninteractionat:).md)
- [tableView(_:didBeginMultipleSelectionInteractionAt:)](uikit/uitableviewdelegate/tableview(_:didbeginmultipleselectioninteractionat:).md)
- [tableViewDidEndMultipleSelectionInteraction(_:)](uikit/uitableviewdelegate/tableviewdidendmultipleselectioninteraction(_:).md)
