に触れる:UIPanGestureRecognizerは、すべてのコードを取得する私は、次のジェスチャー認識追加した
UIPanGestureRecognizer *d2 = [[UIPanGestureRecognizer alloc]
initWithTarget:self
action:@selector(ViewDragging2:)];
[d2 setMinimumNumberOfTouches:2];
[d2 setMaximumNumberOfTouches:2];
[targetView addGestureRecognizer:d2];
をし、そのイベントが発生したときのがクビ方法は次のとおりです。
私に1点をだ取得-(void)ViewDragging2:(UIPanGestureRecognizer*)sender {
// some point
CGPoint translatedPoint = [(UIPanGestureRecognizer*)sender translationInView:targetView];
}
私は2本の指で触れても触れる。どのようにして1番目と2番目の接触のコードを取り出すことができますか?