美文网首页
iOS  中UITableView的行刷新和区刷新的时候,遇到了

iOS  中UITableView的行刷新和区刷新的时候,遇到了

作者: 孤月独酌 | 来源:发表于2016-10-25 13:35 被阅读0次

    哈哈,分享一下

    mark      

    - (void)click{

       [self.tableView beginUpdates];

       [self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:0 inSection:0]] withRowAnimation:UITableViewRowAnimationNone];

       [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationNone];

       [self.tableView endUpdates];

    }

    希望对大家有帮助,更新区里面的行,添加

    相关文章

      网友评论

          本文标题:iOS  中UITableView的行刷新和区刷新的时候,遇到了

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