UITableview刷新某一个cell或者section
作者:
未来可期me | 来源:发表于
2017-01-09 16:05 被阅读44次
//一个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];
本文标题:UITableview刷新某一个cell或者section
本文链接:https://www.haomeiwen.com/subject/qurhbttx.html
网友评论