Merge pull request #3266 from jianhan-he/master
[iOS]fix waterfall crash error
diff --git a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m
index 5f92f29..ef63b99 100644
--- a/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m
+++ b/ios/sdk/WeexSDK/Sources/Component/Recycler/WXRecyclerUpdateController.m
@@ -214,7 +214,7 @@
[itemDiffResult.inserts enumerateIndexesUsingBlock:^(NSUInteger idx, BOOL * _Nonnull stop) {
WXCellComponent *cell = [newSection.cellComponents wx_safeObjectAtIndex:idx];
if (cell.isLayoutComplete) {
- NSIndexPath *insertIndexPath = [NSIndexPath indexPathForItem:idx inSection:sectionUpdate.oldIndex];
+ NSIndexPath *insertIndexPath = [NSIndexPath indexPathForItem:idx inSection:sectionUpdate.newIndex];
[insertIndexPaths addObject:insertIndexPath];
}
}];