其他分享
首页 > 其他分享> > iOS UITableview 刷新指定的某一个section或cell

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

 

标签:indexPath,NSIndexPath,section,iOS,cell,indexSet,刷新
来源: https://www.cnblogs.com/OIMM/p/11014721.html