setSelected(_:animated:)
Sets the selected state of the cell, optionally animating the transition between states.
Declaration
func setSelected(_ selected: Bool, animated: Bool)Parameters
Discussion
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.