Contents

tableHeaderView

The view that displays above the table’s content.

Declaration

var tableHeaderView: UIView? { get set }

Mentioned in

Discussion

Use this property to specify a header view for your entire table. The header view is the first item to appear in the table’s view’s scrolling content, and it’s separate from the header views you add to individual sections. The default value of this property is nil.

When assigning a view to this property, set the height of that view to a nonzero value. The table view respects only the height of your view’s frame rectangle; it adjusts the width of your header view automatically to match the table view’s width.

See Also

Related Documentation

Configuring the table’s appearance