Instance Property


The index paths for the selected items.


@property(nonatomic, readonly) NSArray<NSIndexPath *> *indexPathsForSelectedItems;


The value of this property is an array of NSIndexPath objects, each of which corresponds to a single selected item. If there are no selected items, the value of this property is nil.

See Also

Managing the Selection


A Boolean value that indicates whether users can select items in the collection view.


A Boolean value that determines whether users can select more than one item in the collection view.

- selectItemAtIndexPath:animated:scrollPosition:

Selects the item at the specified index path and optionally scrolls it into view.

- deselectItemAtIndexPath:animated:

Deselects the item at the specified index.