2012-03-12 102 views
0

我想檢測當用戶使用一個手指做出一個UIView轉圈檢測圓形觸摸iPhone的SDK

任何幫助將不勝感激

+0

看到這個鏈接http://cocoacontrols.com/platforms/ios/controls/ndrotator – hchouhan02 2012-03-12 08:47:16

回答

0

我知道這是不好的做法來回答一堆鏈接。但重塑車輪也是如此。

Recognising a circle gesture to drop an annotation, how to detect circle?

How to detect a circle motion with UIGestureRecognizer

How to detect circular gesture via Gesture Recognizer?

所有鏈接的問題包括接受的答案:

在看看。

+0

非常感謝:) – Monty 2012-03-12 11:24:49

+0

你應該關閉重複的問題。不要複製粘貼堆疊中的一些鏈接。 – 2012-03-12 13:20:34

+0

@AlexTerente:我認爲有時候80%的「重複」列表會提供更多的信息(對於OP和其他人來說)和有用的,只是將問題作爲重複來解決。這些「重複」中的每一個都包含更多的參考文獻。如果他們都可以加入一個元問題:那麼我會同意 – 2012-03-12 18:00:58

1

子類YOUE的UIView和實施

– touchesBegan:withEvent: 
– touchesMoved:withEvent: 
– touchesEnded:withEvent: 
– touchesCancelled:withEvent: 

觸摸移動後,您可以獲得新的觸摸點,並可以查看觸摸點是否在圓弧上。

+0

嘿嘿,我知道:),我如何確定從我得到的用戶在一個圈子中移動 – Monty 2012-03-12 10:25:12