您的位置:首页 > 移动开发 > IOS开发

iOS TableView如何刷新指定的cell或section

2017-01-05 16:15 1211 查看
指定的section单独刷新

NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:indexPath.row];
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];


指定的cell单独刷新

NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];


  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: