Contents

backgroundView

The background view of the table view.

Declaration

var backgroundView: UIView? { get set }

Discussion

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 doesn’t scroll with the rest of the table’s content.

See Also

Configuring the table’s appearance