Use visibleNodeIndexPathsForRangeController: to base on visibleNodes in ASTableView

This commit is contained in:
Michael Schneider
2016-04-26 10:37:32 -07:00
parent 28cfd60900
commit 32f35d9d54

View File

@@ -394,9 +394,9 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell";
- (NSArray *)visibleNodes
{
NSArray *indexPaths = [self indexPathsForVisibleRows];
NSMutableArray *visibleNodes = [[NSMutableArray alloc] init];
NSArray *indexPaths = [self visibleNodeIndexPathsForRangeController:_rangeController];
NSMutableArray *visibleNodes = [NSMutableArray array];
for (NSIndexPath *indexPath in indexPaths) {
ASCellNode *node = [self nodeForRowAtIndexPath:indexPath];
if (node) {