美文网首页
ios tableView 刷新某一行某一组

ios tableView 刷新某一行某一组

作者: wodeph | 来源:发表于2023-11-14 15:41 被阅读0次

// 刷新某一行

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

[self.tableView reloadRowsAtIndexPaths:@[indexPath]withRowAnimation:UITableViewRowAnimationFade];

// 刷新某一组

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

// 组数

[self.tableView reloadSections:indexSet withRowAnimation:UITableViewRowAnimationFade];

:仅做记录

相关文章

网友评论

      本文标题:ios tableView 刷新某一行某一组

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