cell 刷新之单一刷新

2016-01-18  本文已影响105人  小猪圣骑士

如果只刷新一个cell 可以用

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

[self.table reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];

如果只刷新一个section 可以用

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

[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];

上一篇 下一篇

猜你喜欢

热点阅读