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];

  

posted on 2017-01-05 16:15  我就是一种相逢  阅读(147)  评论(0)    收藏  举报

导航