//一个section刷新
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
//一个cell刷新
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
// 加入一行cell
[_timeBucketArrayM addObject:@"cc"];
[self.tableView insertRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:_timeBucketArrayM.count - 1 inSection:0]] withRowAnimation:UITableViewRowAnimationFade];UITableView刷新一行、一个区
最新推荐文章于 2020-11-23 09:40:38 发布
本文介绍了如何在iOS开发中使用UITableView进行不同类型的刷新操作,包括整个section的刷新、单个cell的刷新以及插入新的cell等常见场景。

3487

被折叠的 条评论
为什么被折叠?



