iOS 7 custom transition glitch

前端 未结 4 1037
孤街浪徒
孤街浪徒 2021-02-08 18:24

This video shows the issue I am having. http://www.youtube.com/watch?v=C9od_2KZAbs

I am attempting to create a custom push interactive transition using a UIPanGestureRec

4条回答
  •  别那么骄傲
    2021-02-08 19:13

    What happens if you call the [transitionContext completeTransition:YES]; immediately after calling finishInteractiveTransition like this:

    else if (gestureRecogznier.state == UIGestureRecognizerStateEnded) {
    
        if ([gestureRecogznier velocityInView:self.view].x < 0) {
            [self.interactiveTransitionAnimator finishInteractiveTransition];
            [transitionContext completeTransition:YES];
        } else {
            [self.interactiveTransitionAnimator cancelInteractiveTransition];
        }
    
        self.interactiveTransitionAnimator = nil;
    }
    

提交回复
热议问题