美文网首页
IOS Cell 刷新 TableView局部刷新

IOS Cell 刷新 TableView局部刷新

作者: JakieZhang | 来源:发表于2016-12-07 09:57 被阅读247次

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

    相关文章

      网友评论

          本文标题:IOS Cell 刷新 TableView局部刷新

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