iOS TableView如何刷新指定的cell或section

指定的section单独刷新

NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:indexPath.row];    
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];

指定的cell单独刷新

NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];    
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];

  

转载于:https://www.cnblogs.com/ios988/p/6252796.html

你可能感兴趣的:(iOS TableView如何刷新指定的cell或section)