首页 > 其他 > 详细

tableView指定刷新一个cell或一个section

时间:2015-07-29 17:11:40      阅读:167      评论:0      收藏:0      [点我收藏+]

//一个section刷新    

NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];    

[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];    



//一个cell刷新    

NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];    

[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];  


版权声明:本文为博主原创文章,未经博主允许不得转载。

tableView指定刷新一个cell或一个section

原文:http://blog.csdn.net/mr_banma/article/details/47130229

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!