Enumeration

UITableViewCell.SelectionStyle

The style of selected cells.

Declaration

enum SelectionStyle : Int

Overview

You use these constants to set the value of the selectionStyle property.

Topics

Constants

case none

The cell has no distinct style for when it is selected.

case blue

The cell has a default background color when selected.

case gray

Then cell when selected has a gray background.

case `default`

The cell selection style to use for tables. This is the default value.

See Also

Managing Cell Selection and Highlighting

var selectionStyle: UITableViewCell.SelectionStyle

The style of selection for a cell.

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.