UITableView刷新局部
作者:
Matrix_x | 来源:发表于
2015-07-01 11:25 被阅读1482次//局部section刷新
NSIndexSet *nd = [[NSIndexSet alloc] initWithIndex:1]; //刷新第二个section
[self.tableView reloadSections:nd withRowAnimation:UITableViewRowAnimationAutomatic];
//局部cell刷新
NSIndexPath *te=[NSIndexPath indexPathForRow:2 inSection:0];//刷新第一个section的第二行
[self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:te,nil] withRowAnimation:UITableViewRowAnimationMiddle];
本文标题:UITableView刷新局部
本文链接:https://www.haomeiwen.com/subject/agzeqttx.html
网友评论