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,471
  • 17
  • 87
  • 173
Nitish
  • 13,487
  • 26
  • 128
  • 252

2 Answers2

1

Just googling selector multiple parameters gives many relevant answers.

1st result - Calling selectors with multiple arguments

Community
  • 1
  • 1
BufferStack
  • 555
  • 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
  • 447
  • 2
  • 6