//一个section刷新
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];
[tableview reloadSections:indexSetwithRowAnimation:UITableViewRowAnimationA utomatic];
//一个cell刷新
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3inSection:0];
[tableView reloadRowsAtIndexPaths:[NSArrayarrayWithObjects:indexPath,nil]withRowAnimation:UITableViewRowAnimationN one];

本文介绍了在Swift中使用TableView时如何实现局部刷新的功能,包括如何刷新一个section和一个cell的具体实现方式,通过简单的代码示例展示了如何利用NSIndexPath和UITableView的方法来达到这一目的。
2260

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



