Instance Property

selectionStyle

The style of selection for a cell.

Declaration

var selectionStyle: UITableViewCell.SelectionStyle { get set }

Discussion

The selection style is a backgroundView constant that determines the color of a cell when it is selected. The default value is UITableViewCell.SelectionStyle.blue. See UITableViewCell.SelectionStyle for a description of valid constants.

See Also

Managing Cell Selection and Highlighting

enum UITableViewCell.SelectionStyle

The style of selected cells.

var isSelected: Bool

A Boolean value that indicates whether the cell is selected.

func setSelected(Bool, animated: Bool)

Sets the selected state of the cell, optionally animating the transition between states.

var isHighlighted: Bool

A Boolean value that indicates whether the cell is highlighted.

func setHighlighted(Bool, animated: Bool)

Sets the highlighted state of the cell, optionally animating the transition between states.