diff --git a/UIViewController-Transitions-Example/TLTransitionAnimator.m b/UIViewController-Transitions-Example/TLTransitionAnimator.m index b8dded1..6deaffe 100644 --- a/UIViewController-Transitions-Example/TLTransitionAnimator.m +++ b/UIViewController-Transitions-Example/TLTransitionAnimator.m @@ -25,7 +25,6 @@ - (void)animateTransition:(id )transitionC if (self.presenting) { fromViewController.view.userInteractionEnabled = NO; - [transitionContext.containerView addSubview:fromViewController.view]; [transitionContext.containerView addSubview:toViewController.view]; CGRect startFrame = endFrame; @@ -43,9 +42,6 @@ - (void)animateTransition:(id )transitionC else { toViewController.view.userInteractionEnabled = YES; - [transitionContext.containerView addSubview:toViewController.view]; - [transitionContext.containerView addSubview:fromViewController.view]; - endFrame.origin.x += 320; [UIView animateWithDuration:[self transitionDuration:transitionContext] animations:^{