I am trying to call a function with parameters using the action of UITapGestureRecognizer
and I can\'t figure out any alternative.
This here is the gesture
As described in apple developer documents, the action parameter should receive
action::- A selector that identifies the method implemented by the target to handle the gesture recognized by the receiver. The action selector must conform to the signature described in the class overview. NULL is not a valid value.
And Valid action method signatures described in UIGestureRecognizer.h are:
// -(void)handleGesture; // -(void)handleGesture:(UIGestureRecognizer*)gestureRecognizer;
So basically, you will not be able to send anything else as the parameter except the gestureRecognizer.