Extract number of supplementary sections into the inspector

This commit is contained in:
Levi McCallum
2015-09-29 09:14:22 -07:00
committed by Levi McCallum
parent da7a2a5d48
commit 5dee3f62cc
5 changed files with 23 additions and 4 deletions

View File

@@ -683,14 +683,24 @@ static BOOL _isInterceptedSelector(SEL sel)
return constrainedSize;
}
- (NSUInteger)dataController:(ASDataController *)dataController rowsInSection:(NSUInteger)section
{
return [_asyncDataSource collectionView:self numberOfItemsInSection:section];
}
- (ASSizeRange)dataController:(ASCollectionDataController *)dataController constrainedSizeForSupplementaryNodeOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath
{
return [self.layoutDelegate collectionView:self constrainedSizeForSupplementaryNodeOfKind:kind atIndexPath:indexPath];
}
- (NSUInteger)dataController:(ASDataController *)dataController rowsInSection:(NSUInteger)section
- (NSUInteger)dataController:(ASCollectionDataController *)dataController supplementaryViewsOfKind:(NSString *)kind inSection:(NSUInteger)section
{
return [_asyncDataSource collectionView:self numberOfItemsInSection:section];
return [self.layoutDelegate collectionView:self supplementaryViewsOfKind:kind inSection:section];
}
- (NSUInteger)dataController:(ASCollectionDataController *)dataController numberOfSectionsForSupplementaryKind:(NSString *)kind;
{
return [self.layoutDelegate collectionView:self numerOfSectionsForSupplementaryKind:kind];
}
- (NSUInteger)numberOfSectionsInDataController:(ASDataController *)dataController {