Allow ASCollectionView to register for supplementary container

This commit is contained in:
Levi McCallum
2015-09-22 21:03:49 -07:00
committed by Levi McCallum
parent 4e32c075d4
commit 0d2332bd82
3 changed files with 11 additions and 0 deletions

View File

@@ -379,6 +379,12 @@ static BOOL _isInterceptedSelector(SEL sel)
[self performBatchAnimated:YES updates:updates completion:completion];
}
- (void)registerSupplementaryViewOfKind:(NSString *)elementKind
{
NSString *identifier = [NSString stringWithFormat:@"_ASCollectionSupplementaryView_%@", elementKind];
[self registerClass:[UIView class] forSupplementaryViewOfKind:elementKind withReuseIdentifier:identifier];
}
- (void)insertSections:(NSIndexSet *)sections
{
ASDisplayNodeAssertMainThread();