This commit is contained in:
Adlai Holler
2016-10-05 14:44:54 -07:00
parent d1e64f38c6
commit a75d90db8d
2 changed files with 12 additions and 2 deletions

View File

@@ -301,8 +301,13 @@ NS_ASSUME_NONNULL_BEGIN
* @param cellNode a cellNode part of the collection view
*
* @return an indexPath for this cellNode
*
* @discussion This method will return @c nil for a node that is still being
* displayed in the collection view, if the data source has deleted the item.
* That is, the node is visible but it no longer corresponds
* to any item in the data source and will be removed soon.
*/
- (NSIndexPath *)indexPathForNode:(ASCellNode *)cellNode;
- (nullable NSIndexPath *)indexPathForNode:(ASCellNode *)cellNode;
/**
* Similar to -visibleCells.

View File

@@ -278,7 +278,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* @return a node for display at this indexpath.
*/
- (ASCellNode *)nodeForRowAtIndexPath:(NSIndexPath *)indexPath;
- (nullable ASCellNode *)nodeForRowAtIndexPath:(NSIndexPath *)indexPath;
/**
* Similar to -indexPathForCell:.
@@ -286,6 +286,11 @@ NS_ASSUME_NONNULL_BEGIN
* @param cellNode a cellNode part of the table view
*
* @return an indexPath for this cellNode
*
* @discussion This method will return @c nil for a node that is still being
* displayed in the table view, if the data source has deleted the row.
* That is, the node is visible but it no longer corresponds
* to any item in the data source and will be removed soon.
*/
- (nullable NSIndexPath *)indexPathForNode:(ASCellNode *)cellNode;