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

# tableView(_:didHighlightRowAt:)

Tells the delegate that the specified row was highlighted.

## Declaration

```swift
optional func tableView(_ tableView: UITableView, didHighlightRowAt indexPath: IndexPath)
```

## Parameters

- `tableView`: The table view that highlighted the cell.
- `indexPath`: The index path of the row that was highlighted.

## See Also

### Managing table view highlights

- [tableView(_:shouldHighlightRowAt:)](uikit/uitableviewdelegate/tableview(_:shouldhighlightrowat:).md)
- [tableView(_:didUnhighlightRowAt:)](uikit/uitableviewdelegate/tableview(_:didunhighlightrowat:).md)
