The iOS framework that grows only as fast as its documentation
<NICollectionViewModelDelegate> Protocol Reference

Overview

A protocol for NICollectionViewModel to fetch rows to be displayed for the collection view.

Inheritance diagram for <NICollectionViewModelDelegate>:
NICollectionViewCellFactory

Tasks

(UICollectionViewCell *) - collectionViewModel:cellForCollectionView:atIndexPath:withObject:
 
(UICollectionReusableView *) - collectionViewModel:collectionView:viewForSupplementaryElementOfKind:atIndexPath:
 

Method Documentation

collectionViewModel:cellForCollectionView:atIndexPath:withObject:

Fetches a collection view cell at a given index path with a given object.

- (UICollectionViewCell*)collectionViewModel:(NICollectionViewModel *)collectionViewModel cellForCollectionView:(UICollectionView *)collectionView atIndexPath:(NSIndexPath *)indexPath withObject:(id)object;
Discussion

The implementation of this method will generally use object to customize the cell.

Reimplemented in NICollectionViewCellFactory.

collectionViewModel:collectionView:viewForSupplementaryElementOfKind:atIndexPath:

Fetches a supplementary collection view element at a given indexPath.

- (UICollectionReusableView*)collectionViewModel:(NICollectionViewModel *)collectionViewModel collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
Discussion

The value of the kind property and indexPath are implementation-dependent based on the type of UICollectionViewLayout being used.