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

ios UITableview 刷新某一个cell 或 section

2015-07-27 16:54 597 查看
代替tableview的reloadData方法(有动画)

//一个section刷新
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:0];
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
//一个cell刷新
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:1 inSection:0];
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: