开发者

TouchMoved is SwipeGesture

开发者 https://www.devze.com 2023-02-05 18:53 出处:网络
I am using swipe gesture recognizer.but when i do touchMoved slowly, swipeGesture event is called…is there anyway to avoid it?i wa开发者_如何学编程nt to do different operation in SwipeGesture and Tou

I am using swipe gesture recognizer.but when i do touchMoved slowly, swipeGesture event is called…is there anyway to avoid it?i wa开发者_如何学编程nt to do different operation in SwipeGesture and TouchMoved.


Well, there is a property of UIGestureRecognizer called cancelsTouchesInView. If you set that to NO, you will be able to receive touchesMoved events even while tracking a swipe gesture. Is this what you're after?

0

精彩评论

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

关注公众号