views:

44

answers:

1

Hi,

I wrote a subclass of UIGestureRecognizer using the initWithTarget constructor as well as addTarget, removeTarget methods.

Now, my problem is that I am unable to find any accessors or helper methods to call these targets actions.

I believe there should be any List/Array of targets and actions ...

The docs are somehow weak in that particular question.

Thanks for any help,

Alex

A: 

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.

David M.
That is just too easy to be true ;-) Thank you.
Alex
If you feel this answer is correct, please mark it as such. Thanks. (Use the checkmark on the left-hand side.)
David M.