ios UITableview 刷新某一个cell 或 section

代替tableview的reloadData方法(有动画)

1 //一个section刷新  
2 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:0];  
3 [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];  
4 //一个cell刷新  
5 NSIndexPath *indexPath=[NSIndexPath indexPathForRow:1 inSection:0];  
6 [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];

 

posted on 2015-07-27 16:54  coderJin  阅读(257)  评论(0编辑  收藏  举报

导航