//一个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
本文介绍了如何在iOS开发中使用UITableView时,实现对特定section或cell进行高效刷新的方法。具体包括使用NSIndexSet刷新单独的section,以及利用NSIndexPath刷新指定cell的内容。
918

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



