Skip to content

Instantly share code, notes, and snippets.

@saiday
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save saiday/ac927cbd746e0e113019 to your computer and use it in GitHub Desktop.

Select an option

Save saiday/ac927cbd746e0e113019 to your computer and use it in GitHub Desktop.
ExistViewController
@interface ExistViewController () <UIViewControllerTransitioningDelegate>
@end
@implementation BaseNavigationViewController
- (id<UIViewControllerAnimatedTransitioning>)animationControllerForDismissedController:(UIViewController *)dismissed
{
MiniToLargeViewAnimator *animator = [[MiniToLargeViewAnimator alloc] init];
animator.initialY = bottomBarHeight;
animator.transitionType = ModalAnimatedTransitioningTypeDismiss;
return animator;
}
- (id<UIViewControllerAnimatedTransitioning>)animationControllerForPresentedController:(UIViewController *)presented presentingController:(UIViewController *)presenting sourceController:(UIViewController *)source
{
MiniToLargeViewAnimator *animator = [[MiniToLargeViewAnimator alloc] init];
animator.initialY = bottomBarHeight;
animator.transitionType = ModalAnimatedTransitioningTypePresent;
return animator;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment