<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableViewDelegate/tableView(_:didDeselectRowAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITableViewDelegate(im)tableView:didDeselectRowAtIndexPath:"
  },
  "title" : "tableView(_:didDeselectRowAt:)"
}
-->

# tableView(_:didDeselectRowAt:)

Tells the delegate that the specified row is now deselected.

```
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`](/documentation/UIKit/UITableViewCell/AccessoryType-swift.enum/checkmark)) associated with the row.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)