更新时间:2023-01-01 15:20:20
使用了两个indexPath(indexPath,lastIndexPath)。但对于lastIndexPath.row有我的数组bound.solve通过检查condition.hope这帮助某人。
In my case issue was i used two indexPath(indexPath,lastIndexPath). but for lastIndexPath.row had out of my array bound.solve by check condition.hope this help someone.
[self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath, lastIndexPath, nil] withRowAnimation:UITableViewRowAnimationAutomatic];