Instance Property


The background view of the table view.


var backgroundView: UIView? { get set }


Assign a background view to change the color behind your table's sections and rows. The default value of this property is nil.

When you assign a view to this property, the table view automatically resizes that view to match its own bounds. Your background view appears behind all cells, header views, and footer views and does not scroll with the rest of the table's content.

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 tableHeaderView: UIView?

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

var tableFooterView: UIView?

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