Created
June 10, 2015 04:50
-
-
Save BradB132/e5874a6edcbaf6cb0422 to your computer and use it in GitHub Desktop.
ViewControllerTransitionsPart1-4
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
#pragma mark - UINavigationControllerDelegate | |
- (id <UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController | |
animationControllerForOperation:(UINavigationControllerOperation)operation | |
fromViewController:(UIViewController *)fromVC | |
toViewController:(UIViewController *)toVC | |
{ | |
switch(operation) | |
{ | |
case UINavigationControllerOperationPush: | |
return [[TTPushAnimator alloc] init]; | |
case UINavigationControllerOperationPop: | |
return [[TTPopAnimator alloc] init]; | |
default: | |
return nil; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment