2013-01-03 139 views

回答

4

你可以得到。

UIRotationGestureRecognizer的文檔顯示屬性velocityrotation

這是特定於旋轉。

但是你可以使用從UIGestureRecognizer這些方法...

Getting the Touches and Location of a Gesture 
– locationInView: 
– locationOfTouch:inView: 
– numberOfTouches 

爲了讓觸摸和位置。

從這些你可以很容易地計算中點。

+0

非常感謝。 –

1

UIRotationGestureRecognizer延伸UIGestureRecognizer它有兩種方法:numberOfToucheslocationOfTouch:inView:。使用這些來獲取每個手指的位置。從那裏你可以計算出一箇中心。