Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions UIViewController-Transitions-Example/TLTransitionAnimator.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)transitionC
if (self.presenting) {
fromViewController.view.userInteractionEnabled = NO;

[transitionContext.containerView addSubview:fromViewController.view];
[transitionContext.containerView addSubview:toViewController.view];

CGRect startFrame = endFrame;
Expand All @@ -43,9 +42,6 @@ - (void)animateTransition:(id <UIViewControllerContextTransitioning>)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:^{
Expand Down