Instance Property


The view that is displayed above the table's content.


var tableHeaderView: UIView? { get set }


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

Configuring the Table's Appearance

var style: UITableView.Style

The style of the table view.

enum UITableView.Style

Constants for the table view styles.

var tableFooterView: UIView?

The view that is displayed below the table's content.

var backgroundView: UIView?

The background view of the table view.