From d1281e736176a16b0a29c202d2ec0431e278207a Mon Sep 17 00:00:00 2001 From: Aryan Ghassemi Date: Sat, 19 Apr 2014 09:49:09 -0700 Subject: [PATCH] Bug #30 - Turn off interactivePopGestureRecognizer when the slide menu is open. --- SlideMenu/Source/SlideNavigationController.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SlideMenu/Source/SlideNavigationController.m b/SlideMenu/Source/SlideNavigationController.m index 48fa3be..839e501 100644 --- a/SlideMenu/Source/SlideNavigationController.m +++ b/SlideMenu/Source/SlideNavigationController.m @@ -299,11 +299,17 @@ static SlideNavigationController *singletonInstance; { if (enable) { + if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) + self.interactivePopGestureRecognizer.enabled = NO; + self.topViewController.view.userInteractionEnabled = NO; [self.view addGestureRecognizer:self.tapRecognizer]; } else { + if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) + self.interactivePopGestureRecognizer.enabled = YES; + self.topViewController.view.userInteractionEnabled = YES; [self.view removeGestureRecognizer:self.tapRecognizer]; }