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

2016-10-25  本文已影响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];

}

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

上一篇 下一篇

猜你喜欢

热点阅读