码迷,mamicode.com
首页 > 其他好文 > 详细

UITableView刷新单个cell或者单个Section

时间:2014-11-05 18:56:55      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:io   ar   for   sp   div   on   cti   bs   ad   

//一个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]; 

UITableView刷新单个cell或者单个Section

标签:io   ar   for   sp   div   on   cti   bs   ad   

原文地址:http://www.cnblogs.com/yunis/p/4076948.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!