Re: determine which push button parameter is pressed?
Re: determine which push button parameter is pressed?
- Subject: Re: determine which push button parameter is pressed?
- From: Darrin Cardani <email@hidden>
- Date: Mon, 28 Apr 2014 13:05:10 -0700
Paul,
Not that I know of. It’s probably easiest to just make your 1 method, and have a different action method for each button press that simply calls the 1 method with a different value. So something like this:
- (void)ButtonPushed:(int)button
{
// do whatever
}
- (IBAction)button1Pushed:(id)sender
{
[self ButtonPushed:1];
}
- (IBAction)button2Pushed:(id)sender
{
[self ButtonPushed:2];
}
etc.
Darrin
On Apr 28, 2014, at 12:35 PM, Paul Miller <email@hidden> wrote:
> When using multiple pushButton parameters (from the new v4 parameter creation API), is it possible to tell which one was clicked (the parameter id) when using the same callback/selector?
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Pro-apps-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden