iOS-Slide-Menu icon indicating copy to clipboard operation
iOS-Slide-Menu copied to clipboard

Block tap recognizing on root Controller?

Open NikKovIos opened this issue 8 years ago • 3 comments

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.

NikKovIos avatar Dec 23 '16 13:12 NikKovIos

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''

NikKovIos avatar Dec 26 '16 10:12 NikKovIos

The problem was at [self enableTapGestureToCloseMenu:NO]; at 143 line. Maybe you should bring it to if (self.menuNeedsLayout) { here } ?

NikKovIos avatar Dec 26 '16 12:12 NikKovIos

Thanks for the tip, I changed that line to: if ( [self isMenuOpen]) { [self enableTapGestureToCloseMenu:YES]; } else{ [self enableTapGestureToCloseMenu:NO]; } and now it's working.

paradojaaa avatar Sep 21 '17 12:09 paradojaaa