Bug #30 - Turn off interactivePopGestureRecognizer when the slide menu is open.
This commit is contained in:
parent
8095b8c58c
commit
d1281e7361
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue