I have a view controller which is nested within a UINavigationController
.
I have implemented the iOS 7 interactivePopGestureRecognizer to enable the user to gesture to pop a VC off the stack.
Within the VC i have a scrollview and whilst the user is not at the top of the scrollview I hide all the chrome (Navigation bar and status bar) to place focus on the content.
However with the navigation bar hidden, the interactivePopGestureRecognizer is not working.
I have tried enabling it after it has disappeared and verified it is not nil, however it still doesn't work.
Is there anything I am missing?
Set your UIViewController subclass as the gestureRecognizer's delegate:
self.navigationController.interactivePopGestureRecognizer.delegate = self;
That's it!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With