mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-05-22 06:53:58 +08:00
Use ASCellNodes for supplementary nodes
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
return node;
|
||||
}
|
||||
|
||||
- (ASDisplayNode *)collectionView:(ASCollectionView *)collectionView nodeForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath
|
||||
- (ASCellNode *)collectionView:(ASCollectionView *)collectionView nodeForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
NSString *text = [kind isEqualToString:UICollectionElementKindSectionHeader] ? @"Header" : @"Footer";
|
||||
SupplementaryNode *node = [[SupplementaryNode alloc] initWithText:text];
|
||||
|
||||
Reference in New Issue
Block a user