Skip to content

Commit abd39c2

Browse files
committed
explicit NSMutableArray type
1 parent 69061b5 commit abd39c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Classes/UITableView+FDTemplateLayoutCell.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ - (void)fd_deleteRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITabl
374374
if (self.fd_autoCacheInvalidationEnabled) {
375375
[self.fd_cellHeightCache buildHeightCachesAtIndexPathsIfNeeded:indexPaths];
376376
[indexPaths enumerateObjectsUsingBlock:^(NSIndexPath *indexPath, NSUInteger idx, BOOL *stop) {
377-
[self.fd_cellHeightCache.sections[indexPath.section] removeObjectAtIndex:indexPath.row];
377+
NSMutableArray *rows = self.fd_cellHeightCache.sections[indexPath.section];
378+
[rows removeObjectAtIndex:indexPath.row];
378379
}];
379380
}
380381
[self fd_deleteRowsAtIndexPaths:indexPaths withRowAnimation:animation]; // Primary call

0 commit comments

Comments
 (0)