0

initWithTargetメソッドと同様にコンストラクターaddTargetを使用して、UIGestureRecognizer のサブクラスを作成しましたremoveTarget

今、私の問題は、これらのターゲット アクションを呼び出すためのアクセサーまたはヘルパー メソッドが見つからないことです。

ターゲットとアクションのリスト/配列が必要だと思います...

その特定の質問では、ドキュメントはどういうわけか弱いです。

助けてくれてありがとう、

アレックス

4

1 に答える 1

2

The superclass handles that for you. You just need to set the state to the correct value:

self.state = UIGestureRecognizerStateRecognized

Please read the guide carefully, including the example recognizer there.

于 2010-09-13T23:02:47.800 に答える