0
点赞
收藏
分享

微信扫一扫

ios UITableview 刷新某一个cell 或 section

鲤鱼打个滚 2023-02-07 阅读 140

//一个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];


举报

相关推荐

0 条评论