Created
June 10, 2015 05:15
-
-
Save BradB132/2ef03459ac4a04503b77 to your computer and use it in GitHub Desktop.
ViewControllerTransitionsPart2-6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//remove this line | |
//[transitionContext completeTransition:finished]; | |
//use this code instead: | |
//put the original stuff back in place if the user cancelled | |
if(transitionContext.transitionWasCancelled) | |
{ | |
[toController.view removeFromSuperview]; | |
[container addSubview:fromController.view]; | |
} | |
[transitionContext completeTransition:!transitionContext.transitionWasCancelled]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment