Touches not recognized after custom transition

后端 未结 1 850
无人共我
无人共我 2021-01-23 08:35

I have an issue with custom transitions on the iPad. I create a custom transition that animates correctly and seems to work (i.e. the transition occurs). However, when I arrive

相关标签:
1条回答
  • 2021-01-23 09:05

    Try to remove fromView from superview:

    [UIView animateWithDuration:[self transitionDuration:transitionContext]
                     animations:^{
                         if (self.isLoggedIn) {
                             //Perform animation
                         } else {
                             //Perform animation
                         }
                     } completion:^(BOOL finished) {
                         [fromViewController.view removeFromSuperview];
                         [transitionContext completeTransition:YES];
                     }];
    }
    
    0 讨论(0)
提交回复
热议问题