View being blocked by UITransitionView after being presented

后端 未结 6 697
心在旅途
心在旅途 2020-12-28 16:07

I have a side navigation controller and present it via a UIButton. When I make this NC the root view controller directly by [self presentviewcontroller: NC animated: Y

6条回答
  •  执笔经年
    2020-12-28 16:34

    I had a similar issue where a UITransitionView kept blocking my views, preventing any user interaction.

    In my case this was due to an uncompleted custom animated UIViewController transition.

    I forgot to properly complete my transition with:

    TransitionContext.completeTransition(transitionContext.transitionWasCancelled)
    

    or

    TransitionContext.completeTransition(!transitionContext.transitionWasCancelled)
    

    In the

    func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {}
    

    from the UIViewControllerAnimatedTransitioning protocol

提交回复
热议问题