0

I have a UIButton as follows :

[btnMailAddress addTarget:self action:@selector(showMap:) forControlEvents:UIControlEventTouchDown];  

My question is, how can I send multiple parameters in showMap method?

halfer
  • 19,824
  • 17
  • 99
  • 186
Nitish
  • 13,845
  • 28
  • 135
  • 263

2 Answers2

1

Just googling selector multiple parameters gives many relevant answers.

1st result - Calling selectors with multiple arguments

Community
  • 1
  • 1
BufferStack
  • 549
  • 9
  • 20
0

You can't. If you need to call a method with multiple parameters, you'll need to first redirect it through an "IBAction"-type method (i.e., -(void)action:(id)sender ).

Mark F
  • 457
  • 2
  • 6