Skip to content

Commit

Permalink
Merge pull request Tencent#514 from passerbyloo/master
Browse files Browse the repository at this point in the history
fix: tableview indexPath cache height delete crash
  • Loading branch information
MoLice authored Feb 28, 2019
2 parents 92cf6e1 + b5f989e commit e104a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QMUIKit/QMUIComponents/QMUICellHeightCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ - (void)qmuiTableCache_deleteRowsAtIndexPaths:(NSArray<NSIndexPath *> *)indexPat
[mutableIndexSet addIndex:indexPath.row];
}];
[mutableIndexSetsToRemove enumerateKeysAndObjectsUsingBlock:^(NSNumber *aKey, NSIndexSet *indexSet, BOOL *stop) {
NSMutableArray<NSNumber *> *heightsInSection = obj.cachedHeights[key.integerValue];
NSMutableArray<NSNumber *> *heightsInSection = obj.cachedHeights[akey.integerValue];
[heightsInSection removeObjectsAtIndexes:indexSet];
}];
}];
Expand Down

0 comments on commit e104a18

Please sign in to comment.