Skip to content

Instantly share code, notes, and snippets.

@akisute
Created August 12, 2014 05:26
Show Gist options
  • Save akisute/9c9d2fc8317ae4833a24 to your computer and use it in GitHub Desktop.
Save akisute/9c9d2fc8317ae4833a24 to your computer and use it in GitHub Desktop.
- (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