首页 > 其他 > 详细

tableView的局部刷新问题

时间:2016-06-12 10:39:12      阅读:70      评论:0      收藏:0      [点我收藏+]

解决办法

 //局部section刷新
    NSIndexSet * nd=[[NSIndexSet alloc]initWithIndex:1];//刷新第二个section
    [tview reloadSections:nd withRowAnimation:UITableViewRowAnimationAutomatic];

    //局部cell刷新
    NSIndexPath *te=[NSIndexPath indexPathForRow:2 inSection:0];//刷新第一个section的第二行
    [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:te,nil] withRowAnimation:UITableViewRowAnimationMiddle];

 

tableView的局部刷新问题

原文:http://www.cnblogs.com/superbobo/p/5576775.html

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