From 4394cf69304213545f1b8ae41982df559e3247d5 Mon Sep 17 00:00:00 2001 From: CarlosGz Date: Thu, 10 Jul 2014 20:09:08 +0200 Subject: [PATCH] Black screen issue solve Black screen issue on the TLTransitionAnimator when the the ViewController is dismissed modally --- UIViewController-Transitions-Example/TLTransitionAnimator.m | 4 ---- 1 file changed, 4 deletions(-) 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:^{