ios开发整理

ios UITableview 刷新某一个cell 或 sect

2018-04-01  本文已影响1人  wvqusrtg

//一个section刷新 

NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; 

[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic]; 

//一个cell刷新 

NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0]; 

[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone]; 

上一篇 下一篇

猜你喜欢

热点阅读