In iOS7, we have a new \"swipe left to right\" gesture, this is a very useful feature, but now I have a problem with it.
I use this code to custom the back button in
Setting the interactivePopGestureRecognizer.delegate to self is only the first step. The second step is to implement
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
return ![otherGestureRecognizer isKindOfClass:UIPanGestureRecognizer.class];
}
The test against the pan gesture recognizer is needed to block vertical scrolling of a scroll or table view while the interactive pop is in progress.