Skip to content

Instantly share code, notes, and snippets.

@chriseidhof
Created October 10, 2013 06:52
Show Gist options
  • Save chriseidhof/6914134 to your computer and use it in GitHub Desktop.
Save chriseidhof/6914134 to your computer and use it in GitHub Desktop.
...
CGPoint location = [recognizer locationInView:view];
self.interactionController = [UIPercentDrivenInteractiveTransition new];
if (location.x < CGRectGetMidX(view.bounds) && self.navigationController.viewControllers.count > 1) { // left half
[self.navigationController popViewControllerAnimated:YES];
} else {
[self.navigationController pushViewController:myViewController animated:YES];
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment