Created
March 2, 2017 04:22
-
-
Save cameronehrlich/887de214d3b11b83adebe991226cc81c to your computer and use it in GitHub Desktop.
This file contains hidden or 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)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; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is wrong...