From fb457f0cc75972d73a70f3dfda768571132c81c2 Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Mon, 14 Aug 2017 15:55:15 +0100 Subject: [PATCH] [examples/ASCollectionView] Register supplementary kinds --- examples/ASCollectionView/Sample/ViewController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/ASCollectionView/Sample/ViewController.m b/examples/ASCollectionView/Sample/ViewController.m index b895e9c9b..4b8f64120 100644 --- a/examples/ASCollectionView/Sample/ViewController.m +++ b/examples/ASCollectionView/Sample/ViewController.m @@ -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;