2012-05-05 7 views
0

私はいくつかの画像ビューを動的に作成しました。 UISwipeGestureRecognizerを使用すると、スワイプの開始位置からイメージビューの開始点またはタグを取得できますが、終了タグまたはポイントを取得できません。UISwipeGestureRecognizer終了点

助けてください

おかげでアドバンス。

答えて

0

スウィープの開始位置と終了位置を検索するには、touchesBegan、touchesMoved、およびtouchesEndedメソッドを使用できます。あなたを助けるかもしれ

次の方法を使用...

-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event 
{ 
    UITouch *touchendpoint = [touches anyObject]; 
    CGPoint gestureEndPoint = [touchendpoint locationInView:self.view]; 
} 

ホープ、これはあなたを助ける...

関連する問題