ドキュメントから: aUIGestureRecognizer
が複数のタッチを追跡している場合、 locationInView:
(通常) が返されます:
... ジェスチャに含まれるタッチの重心。
私の知る限り、ジェスチャ認識機能を使用しておらず、代わりにtouchesBegan:withEvent:
などを介して直接タッチを追跡している場合は、各個人UITouch
にtouches
そのlocationInView:
.
明らかに、すべてのタッチを繰り返して重心を自分で計算できますが、これを行う iOS ライブラリ関数が必要であると推測しています。この機能にアクセスできますか? あるいは、同じ機能を得る他の方法はありますか、それとも文句を言うのをやめて自分で重心を計算するだけですか?