I've got a problem with my application. I want to implement some edge screen gesture using UIScreenEdgePanGestureRecognizer
. It works very well on device with iOS 9, but on iOS 8 it doesn't. The recognizer has been added to a view of a root view controller of my app.
I've implemented UIGestureRecognizerDelegate
protocol but the method
(BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
is
not even called.
I thought it may be connected with another gesture recognizer, so I've implemented method
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRequireFailureOfGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer {
return NO;
}
but nothing changed.
Problem solved.
Creating gesture recognizer in code instead of storyboard works... It's very strange that recognizer added in storyboard was working on iOS 9 but not on iOS8. I think it's a bug of Xcode 7.1.1.