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

The methods adopted by the object you use to manage data and provide cells for a collection view.

UICollectionViewDataSourcePrefetching

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