Skip to content

Instantly share code, notes, and snippets.

@BradB132
Created June 10, 2015 04:50
Show Gist options
  • Save BradB132/e5874a6edcbaf6cb0422 to your computer and use it in GitHub Desktop.
Save BradB132/e5874a6edcbaf6cb0422 to your computer and use it in GitHub Desktop.
ViewControllerTransitionsPart1-4
#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