- (void)checkItemListCellReloadAtIndexPath:(NSIndexPath *)indexPath {
// 使用 indexPath 刷新指定单元格
[self.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
}
总结
通过在 updatePhotosWithFileList: 方法中引入 indexPath 参数,调用方可以明确指向需要更新的单元格,从而避免混乱或不必要的刷新操作。这种方式既清晰又便于扩展。
网友评论