美文网首页iOS开发交流平台iOS Developer
ios UITableview 刷新某一个cell 或 sect

ios UITableview 刷新某一个cell 或 sect

作者: 轻斟浅醉17 | 来源:发表于2017-03-02 15:36 被阅读59次

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

相关文章

网友评论

    本文标题:ios UITableview 刷新某一个cell 或 sect

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