Contents

isSelected

A Boolean value that indicates whether the cell is selected.

Declaration

var isSelected: Bool { get set }

Discussion

The selection affects the appearance of labels, image, and background. When the selected state of a cell is set to true, it draws the background for selected cells with its title in white. The default value is false. If you set the selection state to true through this property, the transition to the new state appearance is not animated. For animated selected-state transitions, see the setSelected(_:animated:) method.

See Also

Managing cell selection and highlighting