Updates exposed method signature and docs for what is now -supplementaryNodeForElementKind:atIndexPath: on ASCollectionView. Assert non-nil for usage of ASCollectionDataControllers -supplementaryNodeOfKind:atIndexPath: within ASCollectionView

This commit is contained in:
Colin McArdell and Robin Chou
2016-06-22 15:41:24 -04:00
parent 1c103333f7
commit 9c13018568
2 changed files with 7 additions and 5 deletions

View File

@@ -284,13 +284,14 @@ NS_ASSUME_NONNULL_BEGIN
/**
* Similar to -collectionView:viewForSupplementaryElementOfKind:atIndexPath:.
* Similar to -supplementaryViewForElementKind:atIndexPath:
*
* @param elementKind The kind of supplementary node to locate.
* @param indexPath The index path of the requested supplementary node.
*
* @returns a supplementary node for display at this indexpath or nil
* @returns The specified supplementary node or nil
*/
- (nullable ASCellNode *)supplementaryNodeOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath;
- (nullable ASCellNode *)supplementaryNodeForElementKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)indexPath;
/**
* Similar to -indexPathForCell:.