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