mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-10 16:29:55 +00:00
[examples/ASCollectionView] Register supplementary kinds (#508)
This commit is contained in:
parent
a929950d2c
commit
afeb25a6b4
@ -55,6 +55,8 @@
|
|||||||
layout.headerReferenceSize = CGSizeMake(50.0, 50.0);
|
layout.headerReferenceSize = CGSizeMake(50.0, 50.0);
|
||||||
layout.footerReferenceSize = CGSizeMake(50.0, 50.0);
|
layout.footerReferenceSize = CGSizeMake(50.0, 50.0);
|
||||||
self.collectionNode = [[ASCollectionNode alloc] initWithFrame:self.view.bounds collectionViewLayout:layout];
|
self.collectionNode = [[ASCollectionNode alloc] initWithFrame:self.view.bounds collectionViewLayout:layout];
|
||||||
|
[self.collectionNode registerSupplementaryNodeOfKind:UICollectionElementKindSectionHeader];
|
||||||
|
[self.collectionNode registerSupplementaryNodeOfKind:UICollectionElementKindSectionFooter];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
self.collectionNode.dataSource = self;
|
self.collectionNode.dataSource = self;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user