Sets the selected state of the cell, optionally animating the transition between states.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
trueto set the cell as selected,
falseto set it as unselected. The default is
trueto animate the transition between selected states,
falseto make the transition immediate.
The selection affects the appearance of labels, image, and background. When the selected state of a cell is
true, it draws the background for selected cells (Reusing Cells) with its title in white.