开发者

UIRotationGestureRecognizer minimum rotation value

开发者 https://www.devze.com 2023-01-02 20:42 出处:网络
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 m

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消