I have a view controller which is nested within a UINavigationController
.
I have implemented the iOS 7 interactivePopGestureRecognizer to enable the user to
This doesn't seem to work for me. I followed Keithl's blog post. Neither did that work.
I ultimately settled with UISwipeGestureRecognizer
. It seems to do what it says.
UISwipeGestureRecognizer *gestureRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(backButtonPressed:)];
[gestureRecognizer setDirection:(UISwipeGestureRecognizerDirectionRight)];
[self.navigationController.view addGestureRecognizer:gestureRecognizer];