Instance Property

dataSource

The object that provides the data for the collection view.

Declaration

@property(nonatomic, weak) id<UICollectionViewDataSource> dataSource;

Discussion

The data source must adopt the UICollectionViewDataSource protocol. The collection view maintains a weak reference to the data source object.

See Also

Providing the Collection View Data

UICollectionViewDataSource

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.

UICollectionViewDataSourcePrefetching

A protocol that provides advance warning of the data requirements for a collection view, allowing the triggering of asynchronous data load operations.

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