Contents

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