Sets the highlighted state of the cell, optionally animating the transition between states.
- iOS 3.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
trueto set the cell as highlighted,
falseto set it as unhighlighted. The default is
trueto animate the transition between highlighted states,
falseto make the transition immediate.
Highlights or unhighlights the cell, animating the transition between regular and highlighted state if
animated is YES. Highlighting affects the appearance of the cell’s labels, image, and background.
Note that for highlighting to work properly, you must fetch the cell’s label (or labels) using the
detail properties and set the label’s
highlighted property; for images, get the cell’s image using the
image property and set the
A custom table cell may override this method to make any transitory appearance changes.