TableView刷新指定的cell 或section

 1 //一个section刷新    
 2 
 3 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];    
 4 
 5 [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];    
 6 
 7 
 8 
 9 //一个cell刷新    
10 
11 NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];    
12 
13 [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];  
让明天,不后悔今天的所作所为
原文地址:https://www.cnblogs.com/-yun/p/5779126.html