The object that acts as the delegate of the collection view.
- iOS 6.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
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.
Managing Collection View Interactions
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.
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