//一个section刷新
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:3];
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
//一个cell刷新
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:2 inSection:1];
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
UITableView刷新指定的section和cell
最新推荐文章于 2022-05-19 09:58:29 发布