I开发者_Python百科s it possible to set a minimum rotation value necessary for a UIRotationGestureRecognizer to transition into UIGestureRecognizerStateRecognized? I'm using multiple recognizers, and my UIRotationGestureRecognizer keeps getting called with a very small rotation (Between 1 and 15 degrees either direction) rather than my UIPinchGestureRecognizer.
What I'd like to do is only have the rotation be called if the rotation is within a certain range, otherwise cancel it and let the pinch be called.
No there isn't such a method.
However, you can check the .rotation property of the gesture recognizer, and determine if you need to take any actions.
加载中,请稍侯......
精彩评论