美文网首页
cell 刷新之单一刷新

cell 刷新之单一刷新

作者: 小猪圣骑士 | 来源:发表于2016-01-18 15:33 被阅读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];

相关文章

网友评论

      本文标题:cell 刷新之单一刷新

      本文链接:https://www.haomeiwen.com/subject/lfykkttx.html