ASCollectionView docs for -supplementaryNodeOfKind:atIndexPath: + nullability. Also, nullability for -nodeForItemAtIndexPath:

This commit is contained in:
Colin McArdell and Robin Chou
2016-06-21 10:27:59 -04:00
parent 488ded2fe8
commit 1c103333f7

View File

@@ -278,11 +278,19 @@ NS_ASSUME_NONNULL_BEGIN
*
* @param indexPath The index path of the requested node.
*
* @returns a node for display at this indexpath.
* @returns a node for display at this indexpath or nil
*/
- (ASCellNode *)nodeForItemAtIndexPath:(NSIndexPath *)indexPath;
- (nullable ASCellNode *)nodeForItemAtIndexPath:(NSIndexPath *)indexPath;
- (ASCellNode *)supplementaryNodeOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
/**
* Similar to -collectionView:viewForSupplementaryElementOfKind:atIndexPath:.
*
* @param indexPath The index path of the requested supplementary node.
*
* @returns a supplementary node for display at this indexpath or nil
*/
- (nullable ASCellNode *)supplementaryNodeOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
/**
* Similar to -indexPathForCell:.