Possible Duplicate:
How can I send two arguments in a selector method?
I am writing an action for a button. But the method that I write as the selector takes in two parameters. how would I write the method name in the code:
action:@selector(myMethod)
The only argument passed to “action” methods is the
sender, which is the view that triggered the action (and it’s optional). So you can’t pass multiple arguments to an action method, because there are not multiple arguments to send.But you can simply call another method from your action, which can contain whatever arguments you want.