---
title: "tableView(_:didEndDisplaying:forRowAt:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitableviewdelegate/tableview(_:didenddisplaying:forrowat:)"
---

# tableView(_:didEndDisplaying:forRowAt:)

Tells the delegate that the specified cell was removed from the table.

## Declaration

```swift
optional func tableView(_ tableView: UITableView, didEndDisplaying cell: UITableViewCell, forRowAt indexPath: IndexPath)
```

## Parameters

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

## Discussion

Discussion Use this method to detect when a cell is removed from a table view, as opposed to monitoring the view itself to see when it appears or disappears.

## See Also

### Tracking the removal of views

- [tableView(_:didEndDisplayingHeaderView:forSection:)](uikit/uitableviewdelegate/tableview(_:didenddisplayingheaderview:forsection:).md)
- [tableView(_:didEndDisplayingFooterView:forSection:)](uikit/uitableviewdelegate/tableview(_:didenddisplayingfooterview:forsection:).md)
