Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は iPad で円を回転させています。swipegesture イベントを挿入しました。しかし、touchMoved と swipeEvent で異なる操作をしたいのですが、移動をタッチすると、swipew ジェスチャが呼び出されます。
スワイプ:
NSEventTypeSwipeスワイプジェスチャを表すイベント。Mac OSXv10.6以降で利用できます。NSEvent.hで宣言されています。
と
touchMoved:
関連するビューで1本以上の指が移動すると、レシーバーに送信されます。
したがって、touches.swipeは、touchイベントを認識するために使用されます。