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.
アプリでタッチ イベントを使用したい。ジェスチャ認識機能が watchKit で使用できないことはわかっています。touchesBegan、touchesMove などの関数を使用することは可能ですか?
パーティーには少し遅れましたが、SceneKit を WatchKit と一緒に使用することができ、SceneKit を使用するとジェスチャー ハンドラーを追加できます。こちらの Apple サンプル プロジェクトを参照してください。
https://developer.apple.com/library/content/samplecode/WatchPuzzle/Introduction/Intro.html#//apple_ref/doc/uid/TP40017284-Intro-DontLinkElementID_2
編集: InterfaceController に追加された任意のビューに、タップ、スワイプ、長押し、およびパンのジェスチャ ハンドルを追加できるようです。