mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Use visibleNodeIndexPathsForRangeController: to base on visibleNodes in ASTableView
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user