From 1c103333f792b75173146d18bdd674b1c1883c4c Mon Sep 17 00:00:00 2001 From: Colin McArdell and Robin Chou Date: Tue, 21 Jun 2016 10:27:59 -0400 Subject: [PATCH] `ASCollectionView` docs for `-supplementaryNodeOfKind:atIndexPath:` + nullability. Also, nullability for `-nodeForItemAtIndexPath:` --- AsyncDisplayKit/ASCollectionView.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/AsyncDisplayKit/ASCollectionView.h b/AsyncDisplayKit/ASCollectionView.h index 015f2cd3b3..519705fc97 100644 --- a/AsyncDisplayKit/ASCollectionView.h +++ b/AsyncDisplayKit/ASCollectionView.h @@ -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:.