UITableView在自定义演示动画期间“跳起来”

时间:2018-11-29 10:12:08

标签: ios swift

我正在尝试创建自定义过渡,但是“跳转” tableView遇到问题。如您所见,在过渡之前,tableView隐藏在navigationBar下,这是错误的。我该如何解决? 动画代码:

UIView.animate(withDuration: transitionDuration, delay: 0, options: animationOptions, animations: { [weak self] in
        guard let self = self else { return }
        fromVC.view.transform = CGAffineTransform(scaleX: 0.9, y: 0.855)
        fromVC.view.layer.cornerRadius = self.cornerRadius
        fromVC.view.clipsToBounds = true
        self.containerView.frame.origin.y -= self.containerHeight
        self.topView.frame.origin.y -= self.containerHeight
        self.backdropView.alpha = self.backdropAlpha
        }, completion: { _ in
            transitionContext.completeTransition(true)
    })

及其当前外观: enter image description here

0 个答案:

没有答案