Instance Property

delegate

The object that acts as the delegate of the collection view.

Declaration

@property(nonatomic, weak) id<UICollectionViewDelegate> delegate;

Discussion

The delegate must adopt the UICollectionViewDelegate protocol. The collection view maintains a weak reference to the delegate object.

The delegate object is responsible for managing selection behavior and interactions with individual items.

See Also

Managing Collection View Interactions

UICollectionViewDelegate

The UICollectionViewDelegate protocol defines methods that allow you to manage the selection and highlighting of items in a collection view and to perform actions on those items. The methods of this protocol are all optional.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software