Created
August 12, 2014 05:26
-
-
Save akisute/9c9d2fc8317ae4833a24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
id target = [self.navigationController valueForKey:@"_cachedInteractionController"]; | |
UIGestureRecognizer *recognizer = [[UIPanGestureRecognizer alloc] initWithTarget:target action:@selector(handleNavigationTransition:)]; | |
[self.view addGestureRecognizer:recognizer]; | |
// Add a dependency between your recognizer and the interactivePopGestureRecognizer | |
// to prevent multiple recognition, if needed. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment