This commit is contained in:
Scott Pfeil 2021-11-04 14:16:21 -04:00
parent 35b96b2fde
commit 64f6624e00

View File

@ -886,14 +886,11 @@
- (void)navigationController:(UINavigationController *)navigationController interactiveTransitionWasCanceled:(BOOL)canceled {
if (self.delegateObject.presentationDelegate && [self.delegateObject.presentationDelegate respondsToSelector:@selector(navigationController:interactiveTransitionWasCanceled:)]) {
return [self.delegateObject.presentationDelegate navigationController:navigationController interactiveTransitionWasCanceled:canceled];
} else {
return;
[self.delegateObject.presentationDelegate navigationController:navigationController interactiveTransitionWasCanceled:canceled];
}
}
- (void)viewController:(UIViewController *)presentingViewController willPresentViewController:(UIViewController *)presentedViewController {
if ([self.delegateObject.presentationDelegate respondsToSelector:@selector(viewController:willPresentViewController:)]) {
[self.delegateObject.presentationDelegate viewController:presentingViewController willPresentViewController:presentedViewController];
}