首页 > 其他 > 详细

TableView刷新指定的cell 或section

时间:2016-08-17 12:13:58      阅读:82      评论:0      收藏:0      [点我收藏+]

 

 

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

 

TableView刷新指定的cell 或section

原文:http://www.cnblogs.com/-yun/p/5779126.html

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