The object that provides the data for the collection view.
- iOS 6.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
The data source must adopt the
UICollectionViewDataSource protocol. The collection view maintains a weak reference to the data source object.
Providing the Collection View Data
An object that adopts the
UICollectionViewDataSource protocol is responsible for providing the data and views required by a collection view. A data source object represents your app’s data model and vends information to the collection view as needed. It also handles the creation and configuration of cells and supplementary views used by the collection view to display your data.
A protocol that provides advance warning of the data requirements for a collection view, allowing the triggering of asynchronous data load operations.
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