Bug #30 - Turn off interactivePopGestureRecognizer when the slide menu is open.

This commit is contained in:
Aryan Ghassemi 2014-04-19 09:49:09 -07:00
parent 8095b8c58c
commit d1281e7361
1 changed files with 6 additions and 0 deletions

View File

@ -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];
}