From dff739240e9e0aae33bdfadc567c0147cc023fab Mon Sep 17 00:00:00 2001 From: Tinghui Date: Thu, 13 Oct 2016 15:17:37 +0800 Subject: [PATCH] add custom animated transitioning support for custom delegate --- Classes/AHKNavigationController.m | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Classes/AHKNavigationController.m b/Classes/AHKNavigationController.m index e1d5f4d..56b840e 100644 --- a/Classes/AHKNavigationController.m +++ b/Classes/AHKNavigationController.m @@ -64,6 +64,20 @@ - (void)navigationController:(UINavigationController *)navigationController } } +- (nullable id )navigationController:(UINavigationController *)navigationController + animationControllerForOperation:(UINavigationControllerOperation)operation + fromViewController:(UIViewController *)fromVC + toViewController:(UIViewController *)toVC { + if (self.realDelegate != nil && [self.realDelegate respondsToSelector:_cmd]) { + return [self.realDelegate navigationController:navigationController + animationControllerForOperation:operation + fromViewController:fromVC + toViewController:toVC]; + } + + return nil; +} + #pragma mark - UIGestureRecognizerDelegate - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer