When the method that I am trying to link to my UIButton only has one parameter, then I am able to call addTarget and my code runs successfully when the button is clicked --
[ myDetailButton addTarget:self action:@selector(hideMap:) forControlEvents:UIControlEventTouchUpInside];
(void)hideMap:(NSMutableArray*)arguments
but if I add a second parameter to my hideMap method, I get an unrecognized selector error when calling it:
[ myDetailButton addTarget:self action:@selector(hideMap:) forControlEvents:UIControlEventTouchUpInside];
(void)hideMap:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options
I see this error no matter how I format the addTarget parameters, per this question --
action:@selector(hideMap)
action:@selector(hideMap:)
action:@selector(hideMap:event:)
How can I call a method that has multiple parameters using addTarget?