Skip to content

Instantly share code, notes, and snippets.

@cameronehrlich
Created March 2, 2017 04:22
Show Gist options
  • Select an option

  • Save cameronehrlich/887de214d3b11b83adebe991226cc81c to your computer and use it in GitHub Desktop.

Select an option

Save cameronehrlich/887de214d3b11b83adebe991226cc81c to your computer and use it in GitHub Desktop.
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
[super pushViewController:viewController animated:animated];
self.interactivePopGestureRecognizer.delegate = viewController;
self.interactivePopGestureRecognizer.enabled = YES;
}
- (void)popViewController:(UIViewController *)viewController animated:(BOOL)animated
{
[super popViewController:viewController animated:animated];
self.interactivePopGestureRecognizer.enabled = NO;
}
@cameronehrlich
Copy link
Copy Markdown
Author

this is wrong...

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