Instance Property

allowsMultipleSelection

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

Declaration

@property(nonatomic) BOOL allowsMultipleSelection;

Discussion

This property controls whether multiple items can be selected simultaneously. The default value of this property is NO.

When the value of this property is YES, tapping a cell adds it to the current selection (assuming the delegate permits the cell to be selected). Tapping the cell again removes it from the selection.

See Also

Managing the Selection

allowsSelection

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

indexPathsForSelectedItems

The index paths for the selected items.

- 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.