美文网首页
tableview刷新某个区域(section)或者某一行(ro

tableview刷新某个区域(section)或者某一行(ro

作者: 蒲公英少年 | 来源:发表于2016-04-06 22:07 被阅读3949次
    //一个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刷新某个区域(section)或者某一行(ro

      本文链接:https://www.haomeiwen.com/subject/nnemlttx.html