美文网首页
UITableView刷新指定section的时候回跳动问题

UITableView刷新指定section的时候回跳动问题

作者: 姚姚先生 | 来源:发表于2018-06-05 13:35 被阅读28次
//只刷新指定分区
    NSIndexSet *indexSet=[[NSIndexSet alloc] initWithIndex:1]; //你需要更新的组数
    [UIView performWithoutAnimation:^{
        [self.tableView reloadSections:indexSet withRowAnimation:UITableViewRowAnimationNone];
    }];

去掉隐式动画即可

相关文章

网友评论

      本文标题:UITableView刷新指定section的时候回跳动问题

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