Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block tap recognizing on root Controller? #238

Open
NikKovIos opened this issue Dec 23, 2016 · 3 comments
Open

Block tap recognizing on root Controller? #238

NikKovIos opened this issue Dec 23, 2016 · 3 comments

Comments

@NikKovIos
Copy link

NikKovIos commented Dec 23, 2016

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
Copy link
Author

NikKovIos commented Dec 26, 2016

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
Copy link
Author

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

@paradojaaa
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants