Re: UIButton's Sender Control Events
Re: UIButton's Sender Control Events
- Subject: Re: UIButton's Sender Control Events
- From: Chunk 1978 <email@hidden>
- Date: Sun, 24 Jan 2010 13:12:29 -0500
linking several control events to one method is what i'm trying to do,
but i do not know how to decipher which control event is calling the
method.
On Sun, Jan 24, 2010 at 12:12 PM, Tharindu Madushanka
<email@hidden> wrote:
> Hi,
>
> You can link IBAction method using Interface builder. You can create a link
> to your UIButton then it will show up a list of control events to connect.
> And then its not necessary to do something like this.
>
> You can link the same method for different control events I think.
>
> Have a quick look at this tutorial.. may be helpful..
> http://icodeblog.com/2008/07/30/iphone-programming-tutorial-connecting-code-to-an-interface-builder-view/
>
> Tharindu Madushanka
>
> On Sun, Jan 24, 2010 at 10:24 PM, Chunk 1978 <email@hidden> wrote:
>>
>> is it not possible to handle a sender's controlEvents inside a single
>> method instead of sending it off to another method?
>>
>> -(IBAction)myButton:(id)sender
>> {
>> if (sender.UIControlEvent =
>> forControlEvents:UIControlEventTouchUpInside) NSLog(@"touchUp");
>> }
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden