Added node access methods to ASTableView, ASCollectionView.

This commit is contained in:
Dustin Shahidehpour
2015-01-26 13:57:04 -08:00
parent e1f8342c3b
commit 94cd785870
6 changed files with 78 additions and 2 deletions

View File

@@ -63,6 +63,22 @@
- (void)reloadItemsAtIndexPaths:(NSArray *)indexPaths;
- (void)moveItemAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)newIndexPath;
/**
* Similar to -cellForItemAtIndexPath:.
*
* @param indexPath The index path of the requested node.
*
* @returns a node for display at this indexpath.
*/
- (ASCellNode *)nodeForItemAtIndexPath:(NSIndexPath *)indexPath;
/**
* Similar to -visibleCells.
*
* @returns an array containing the nodes being displayed on screen.
*/
- (NSArray *)visibleNodes;
/**
* Query the sized node at `indexPath` for its calculatedSize.
*