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

@@ -72,6 +72,22 @@
- (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;
- (void)moveRowAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)newIndexPath;
/**
* Similar to -cellForRowAtIndexPath:.
*
* @param indexPath The index path of the requested node.
*
* @returns a node for display at this indexpath.
*/
- (ASCellNode *)nodeForRowAtIndexPath:(NSIndexPath *)indexPath;
/**
* Similar to -visibleCells.
*
* @returns an array containing the nodes being displayed on screen.
*/
- (NSArray *)visibleNodes;
@end