Conforms to ASCommonCollectionViewDataSource
NSObject
Declared in ASCollectionView.h

Overview

This is a node-based UICollectionViewDataSource.

Instance Methods

collectionView:nodeForItemAtIndexPath:

Similar to -collectionView:cellForItemAtIndexPath:.

- (ASCellNode *)collectionView:(id)collectionView nodeForItemAtIndexPath:(id)indexPath

Parameters

indexPath

The index path of the requested node.

collection

The sender.

Return Value

a node for display at this indexpath. Must be thread-safe (can be called on the main thread or a background queue) and should not implement reuse (it will be called once per row). Unlike UICollectionView’s version, this method is not called when the row is about to display.

Declared In

ASCollectionView.h