首页 > UITableView中cell比较高的时候insertRow和deleteRow动画不连贯

UITableView中cell比较高的时候insertRow和deleteRow动画不连贯

问题如图中展示那样, 感觉好像动画在完成默认高度的动画后,超出部分就直接消失掉了。。。

插入删除row代码如下:

NSIndexPath *indexPath = [NSIndexPath indexPathForRow:1 inSection:0];
    
    [self.tableView beginUpdates];
    
    if (_signatureOpen) {
        [self.tableView insertRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationTop];
    } else {
        [self.tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationTop];
    }
    
    
    [self.tableView endUpdates];
【热门文章】
【热门文章】