honcheng / PaperFold-for-iOS

Paper folding animation for iOS
Other
2.7k stars 399 forks source link

Disable menu in pushed View Controller #41

Open vlondon opened 11 years ago

vlondon commented 11 years ago

Hello.

In rootViewController I'm doing [self.navigationController pushViewController:embeddedViewController animated:YES];

And in embeddedViewController I need to disable FoldMenu, because I'm using Gesture Recognizers there. I tried this code in embeddedViewController, but it doesn't work: -(BOOL)gestureRecognizer:(UIGestureRecognizer )gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer )otherGestureRecognizer { if ( [gestureRecognizer isMemberOfClass:[UISwipeGestureRecognizer class]] ) { // Return NO for views that don't support Swipes return NO; } return YES; }

Thank you.