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

Already on GitHub? Sign in to your account

Locking/deactivate pan gesture for one of my two underRightViewController #101

Closed
derbu opened this Issue Mar 13, 2013 · 2 comments

Comments

Projects
None yet
3 participants

derbu commented Mar 13, 2013

I have one underLeftViewController and two underRightViewController and all of them a reachable from the FirstTopViewController.
Now I have the problem to activate the pan gestures like this:
[self.view addGestureRecognizer:self.slidingViewController.panGesture];
because I can not decide which Controller should activated through this gesture.

Maybe there is a little trick to choose the right Controller for the "addGestureRecognizer" method?

rrroni commented May 27, 2013

Try adding this:
self.slidingViewController.shouldAddPanGestureRecognizerToTopViewSnapshot = YES;

To viewDidLoad of one of the view controllers you're presenting from MenuViewController, in your case, I'm thinking FirstTopViewController.

Owner

enriquez commented Sep 12, 2013

The gesture should be added to whichever view you want to be pannable.

@enriquez enriquez closed this Sep 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment