Skip to content

Commit

Permalink
[examples/ASCollectionView] Register supplementary kinds (TextureGrou…
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhuy authored Aug 14, 2017
1 parent a929950 commit afeb25a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/ASCollectionView/Sample/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ - (void)viewDidLoad
layout.headerReferenceSize = CGSizeMake(50.0, 50.0);
layout.footerReferenceSize = CGSizeMake(50.0, 50.0);
self.collectionNode = [[ASCollectionNode alloc] initWithFrame:self.view.bounds collectionViewLayout:layout];
[self.collectionNode registerSupplementaryNodeOfKind:UICollectionElementKindSectionHeader];
[self.collectionNode registerSupplementaryNodeOfKind:UICollectionElementKindSectionFooter];
#endif

self.collectionNode.dataSource = self;
Expand Down

0 comments on commit afeb25a

Please sign in to comment.