gpt4 book ai didi

uitableview - 是否可以刷新 ui TableView 的一部分而不刷新其他单元格?

转载 作者:行者123 更新时间:2023-12-01 04:28:44 25 4
gpt4 key购买 nike

是否可以在表格 View 中刷新某些单元格而不刷新其他单元格?

我需要同时删除、插入和添加一些单元格。为此,我想经常刷新表格。

[self.tableView reloadData];

  • 此代码用于刷新我认为表格中的所有单元格。我对此不太确定。因为我的表格包含大量单元格,可能需要一些时间才能重新加载所有单元格。

提前致谢......

最佳答案

是的,尝试- (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation。另请参阅:insertRowsAtIndexPaths:withRowAnimation:deletetRowsAtIndexPaths:withRowAnimation:

关于uitableview - 是否可以刷新 ui TableView 的一部分而不刷新其他单元格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3882472/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com