UICollectionView
class UICollectionView : UIScrollView, UIDataSourceTranslating
-
Deselect the given items, optionally with an animation.
Declaration
Swift
public func deselectItems(_ indexPaths: [IndexPath], animated: Bool)
Parameters
indexPaths
The items to deselect.
animated
true
if you want to animate the deselection, andfalse
if the change should be immediate. -
Deprecated: Please use
deselectAllItems(animated:)
instead.Refer to the documentation for
deselectAllItems(animated:)
for more info.Declaration
Swift
@available(*, deprecated, renamed: "deselectAllItems(animated:﹚") public func deselectAllItems(_ animated: Bool)
-
Deselect all currently selected rows, optionally with an animation.
Declaration
Swift
public func deselectAllItems(animated: Bool)
Parameters
animated
true
if you want to animate the deselection, andfalse
if the change should be immediate.