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

2018-06-05  本文已影响28人  姚姚先生
//只刷新指定分区
    NSIndexSet *indexSet=[[NSIndexSet alloc] initWithIndex:1]; //你需要更新的组数
    [UIView performWithoutAnimation:^{
        [self.tableView reloadSections:indexSet withRowAnimation:UITableViewRowAnimationNone];
    }];

去掉隐式动画即可

上一篇 下一篇

猜你喜欢

热点阅读