Instance Property


The view that is displayed behind the cell’s other content.


var backgroundView: UIView? { get set }


Use this property to assign a custom background view to the cell. The background view is placed behind the content view and its frame is automatically adjusted so that it fills the bounds of the cell.

See Also

Accessing the Cell’s Views

var contentView: UIView

The main view to which you add your cell’s custom content.

var selectedBackgroundView: UIView?

The view that is displayed just above the background view when the cell is selected.