本文介绍了如何使用UIGestureRecognizer检测圆周运动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望能够检测到某人的手指在屏幕上绘制圆周运动 - 好像他们正在画一个'O'。这可能与UIGestureRecognizer一起使用吗?
解决方案
我对我的问题的回答:
http://iphonedevelopment.blogspot.com/2009 /04/detecting-circle-gesture.html
..但将CircleView转换为自定义UIGestureRecognizer。一切都很可爱。
I want to be able to detect someone's finger drawing a circular motion on the screen - as if they were drawing an 'O'. Is this possible with UIGestureRecognizer?
解决方案
My answer to my question:
I used this: http://iphonedevelopment.blogspot.com/2009/04/detecting-circle-gesture.html
.. but turned the CircleView into a custom UIGestureRecognizer. Everything lovely.
这篇关于如何使用UIGestureRecognizer检测圆周运动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!