美文网首页
ios 只刷新某一行或某一组cell

ios 只刷新某一行或某一组cell

作者: 天顾有情人_strive | 来源:发表于2017-01-09 13:39 被阅读551次

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

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