Contents

tableView(_:heightForHeaderInSection:)

Asks the delegate for the height to use for the header of a particular section.

Declaration

optional func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat

Parameters

  • tableView:

    The table view requesting this information.

  • section:

    An index number identifying a section of tableView .

Mentioned in

Return Value

A nonnegative floating-point value that specifies the height (in points) of the header for section.

Discussion

Use this method to specify the height of custom header views returned by your tableView(_:viewForHeaderInSection:) method.

See Also

Related Documentation

Providing header, footer, and row heights