iOS开发Debug之单行刷新TabbleView崩溃

背景:调用单行刷新TabbleView操作崩溃问题。

- (void)reloadSections:(NSIndexSet *)sections withRowAnimation:(UITableViewRowAnimation)animation;

解决方法:

    [self.tableView beginUpdates];

    [self.tableView reloadSections:[[NSIndexSet alloc]initWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];

    [self.tableView endUpdates];




猜你喜欢

转载自blog.csdn.net/q1194259339/article/details/80141061
今日推荐