Use ASCellNodes for supplementary nodes

This commit is contained in:
Levi McCallum
2015-10-11 10:47:35 -07:00
parent 0870d50e36
commit fddb0061b0
10 changed files with 19 additions and 19 deletions

View File

@@ -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];