• 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: [iPhone] Toolbar button and "Touch Down"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iPhone] Toolbar button and "Touch Down"


  • Subject: Re: [iPhone] Toolbar button and "Touch Down"
  • From: Jon Sigman <email@hidden>
  • Date: Tue, 16 Nov 2010 11:56:36 -0800 (PST)

Yeah, UIToolbars are odd beasts. Try this out: place a UISwitch in a toolbar,
hook it up to an IBAction, and you get... nothing. It switches from ON to OFF
and back, but the action never fires. Bug? Feature? Not exactly 'standard and
easy' imho. Maybe the 'next major release' will address this.



________________________________
From: Jonathon Kuo <email@hidden>
To: Matt Neuburg <email@hidden>
Cc: email@hidden
Sent: Tue, November 16, 2010 9:26:40 AM
Subject: Re: [iPhone] Toolbar button and "Touch Down"

On Nov 16, 2010, at 9:12 AM, Matt Neuburg wrote:

> On Mon, 15 Nov 2010 10:02:44 -0800, Jonathon Kuo
><email@hidden> said:
>> Interesting idea, probably a little beyond me. :)
>
> Nonsense. This is perfectly standard and easy. A UIButton can send an action
>message on TouchDown. It makes no difference that the UIButton is inside a
>UIBarButton. How much plainer can it be? m.

I agree: that's how I expected it to work, too, but that's not how it does work
(Xcode 3.2.4). If I drag a Round Rect Button onto the Toolbar, it instantly gets
promoted to a UIBarButtonItem (really!), and I can't set "Touch Down" on it, nor
can I change the class of it in IB. That's why I'm confused...

_______________________________________________

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

References: 
 >Re: [iPhone] Toolbar button and "Touch Down" (From: Matt Neuburg <email@hidden>)
 >Re: [iPhone] Toolbar button and "Touch Down" (From: Jonathon Kuo <email@hidden>)

  • Prev by Date: Re: Core Data: During Migration, should use Primitive Accessors only?
  • Next by Date: Third Party Material
  • Previous by thread: Re: [iPhone] Toolbar button and "Touch Down"
  • Next by thread: Re: [iPhone] Toolbar button and "Touch Down"
  • Index(es):
    • Date
    • Thread