Contents

deselectItem(at:animated:)

Deselects the item at the specified index.

Declaration

func deselectItem(at indexPath: IndexPath, animated: Bool)

Parameters

  • indexPath:

    The index path of the item to select. Specifying nil results in no change to the current selection.

  • animated:

    Specify True to animate the change in the selection or False to make the change without animating it.

Discussion

If the allowsSelection property is false, calling this method has no effect.

This method doesn’t cause any selection-related delegate methods to be called.

See Also

Selecting cells