iOS-Slide-Menu
iOS-Slide-Menu copied to clipboard
Block tap recognizing on root Controller?
Hello, could you please tell if there is such an attribute to block any touches on main screen, when menu is opened, until it would be closed? Or when menu is opened and there is a touch on second Controller, the menu would close.
I found out, that when i change top controller by
[self performSegueWithIdentifier:segueIdentifier sender:self];
the gesture recognizing is working (that i don't want to) when menu is opened.
[[SlideNavigationController sharedInstance] performSegueWithIdentifier:segueIdentifier sender:self]; crashed with - 'Receiver (<SlideNavigationController: 0x15b69e00>) has no segue with identifier 'EventStorySegue''
The problem was at [self enableTapGestureToCloseMenu:NO]; at 143 line. Maybe you should bring it to if (self.menuNeedsLayout) { here } ?
Thanks for the tip, I changed that line to:
if ( [self isMenuOpen]) { [self enableTapGestureToCloseMenu:YES]; } else{ [self enableTapGestureToCloseMenu:NO]; }
and now it's working.