Instance Method

tableView(_:didEndDisplayingHeaderView:forSection:)

Tells the delegate that the specified header view was removed from the table.

Declaration

optional func tableView(_ tableView: UITableView, didEndDisplayingHeaderView view: UIView, forSection section: Int)

Parameters

tableView

The table-view object that removed the view.

view

The header view that was removed.

section

The index of the section that contained the header.

Discussion

Use this method to detect when a header view 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

func tableView(UITableView, didEndDisplaying: UITableViewCell, forRowAt: IndexPath)

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

func tableView(UITableView, didEndDisplayingFooterView: UIView, forSection: Int)

Tells the delegate that the specified footer view was removed from the table.