diff --git a/AsyncDisplayKit/ASTableView.m b/AsyncDisplayKit/ASTableView.m index c18a0dd295..eb17dc58d3 100644 --- a/AsyncDisplayKit/ASTableView.m +++ b/AsyncDisplayKit/ASTableView.m @@ -317,7 +317,11 @@ static BOOL _isInterceptedSelector(SEL sel) - (NSInteger)rangeControllerSections:(ASRangeController *)rangeController { ASDisplayNodeAssertMainThread(); - return [_asyncDataSource numberOfSectionsInTableView:self]; + if ([_asyncDataSource respondsToSelector:@selector(numberOfSectionsInTableView:)]) { + return [_asyncDataSource numberOfSectionsInTableView:self]; + } else { + return 1; + } } - (NSInteger)rangeController:(ASRangeController *)rangeController rowsInSection:(NSInteger)section