mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
ASCollectionView docs for -supplementaryNodeOfKind:atIndexPath: + nullability. Also, nullability for -nodeForItemAtIndexPath:
This commit is contained in:
@@ -278,11 +278,19 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
*
|
*
|
||||||
* @param indexPath The index path of the requested node.
|
* @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:.
|
* Similar to -indexPathForCell:.
|
||||||
|
|||||||
Reference in New Issue
Block a user