Supplementary nodes must be added to the completed nodes after their measurement completes following individual section reloads.

This commit is contained in:
Scott Goodson
2015-12-27 15:34:26 -08:00
parent f87b915162
commit 690f90a899
2 changed files with 21 additions and 6 deletions

View File

@@ -101,11 +101,13 @@ static NSUInteger kNumberOfImages = 14;
return [[SupplementaryNode alloc] initWithText:text];
}
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
{
return _sections.count;
}
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
return [_sections[section] count];
}