Skip to content

Commit d1281e7

Browse files
committed
Bug #30 - Turn off interactivePopGestureRecognizer when the slide menu is open.
1 parent 8095b8c commit d1281e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SlideMenu/Source/SlideNavigationController.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,17 @@ - (void)enableTapGestureToCloseMenu:(BOOL)enable
299299
{
300300
if (enable)
301301
{
302+
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0"))
303+
self.interactivePopGestureRecognizer.enabled = NO;
304+
302305
self.topViewController.view.userInteractionEnabled = NO;
303306
[self.view addGestureRecognizer:self.tapRecognizer];
304307
}
305308
else
306309
{
310+
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0"))
311+
self.interactivePopGestureRecognizer.enabled = YES;
312+
307313
self.topViewController.view.userInteractionEnabled = YES;
308314
[self.view removeGestureRecognizer:self.tapRecognizer];
309315
}

0 commit comments

Comments
 (0)