您的位置:首页 > 产品设计 > UI/UE

UITableView刷新局部

2016-02-24 10:10 471 查看
//局部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];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: