iOS UITableview 刷新指定的某一个section或cell

//某个section刷新    
NSIndexSet *indexSet = [[NSIndexSet alloc] initWithIndex:2];   
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];   

//某个cell刷新    
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:1 inSection:0];    
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone]; 
--------------------- 

猜你喜欢

转载自www.cnblogs.com/OIMM/p/11014721.html
今日推荐