• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UIButton's Sender Control Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: UIButton's Sender Control Events
      • From: Alexander Spohr <email@hidden>
References: 
 >UIButton's Sender Control Events (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Re: Coding double modifier global hotkeys?
  • Next by Date: Re: UIButton's Sender Control Events
  • Previous by thread: UIButton's Sender Control Events
  • Next by thread: Re: UIButton's Sender Control Events
  • Index(es):
    • Date
    • Thread