Merge pull request #25 from toulouse/master

Minor ASTableView bugfix.
This commit is contained in:
Nadine Salter 2014-09-23 16:42:06 -07:00
commit d993730a7d

View File

@ -317,7 +317,11 @@ static BOOL _isInterceptedSelector(SEL sel)
- (NSInteger)rangeControllerSections:(ASRangeController *)rangeController - (NSInteger)rangeControllerSections:(ASRangeController *)rangeController
{ {
ASDisplayNodeAssertMainThread(); ASDisplayNodeAssertMainThread();
if ([_asyncDataSource respondsToSelector:@selector(numberOfSectionsInTableView:)]) {
return [_asyncDataSource numberOfSectionsInTableView:self]; return [_asyncDataSource numberOfSectionsInTableView:self];
} else {
return 1;
}
} }
- (NSInteger)rangeController:(ASRangeController *)rangeController rowsInSection:(NSInteger)section - (NSInteger)rangeController:(ASRangeController *)rangeController rowsInSection:(NSInteger)section