• 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: Dave DeLong <email@hidden>
  • Date: Fri, 12 Nov 2010 21:53:48 -0700

Random idea (untested, just spouting here)

What about initing a barButtonItem with a custom view (that view being a UIButton that has the target/action set on the appropriate touch down inside [the end zone! - sorry, couldn't resist]), and then setting the target/action of the barButtonItem itself to nil?

In other words, let a different control handle the target/action instead of the bar button item itself.

Dave

On Nov 12, 2010, at 11:57 AM, Jon Sigman wrote:

> I struggled this too, but without solution. It seems that toolbar 'buttons'
> aren't real buttons -- they're class UIBarButtonItem from UIBarItem from
> NSObject. Since they're not really buttons, there doesn't appear any way to
> modify their behavior. If there is a way, I'd like to know, too...
>
>
>
>
> ________________________________
> From: Jonathon Kuo <email@hidden>
> To: Cocoa-Dev List <email@hidden>
> Sent: Fri, November 12, 2010 10:02:15 AM
> Subject: [iPhone] Toolbar button and "Touch Down"
>
> I'm doing an iPhone 4.1 app and I have a toolbar at the bottom with bar buttons.
> The problem is that I need to set one of the bar buttons to "Touch Down" instead
> of the default "Touch Up Inside" but IB doesn't show any touch options for
> toolbar buttons (it does for buttons not in the toolbar).
>
> Is there a programmatic way to set this?
> Thx
>
> _______________________________________________
>
> 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

_______________________________________________

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: [iPhone] Toolbar button and "Touch Down"
      • From: Jonathon Kuo <email@hidden>
References: 
 >[iPhone] Toolbar button and "Touch Down" (From: Jonathon Kuo <email@hidden>)
 >Re: [iPhone] Toolbar button and "Touch Down" (From: Jon Sigman <email@hidden>)

  • Prev by Date: How we can simulate a USB/Wifi connection (between iPad and Mac) on iPhone simulator to test my app being shown as file sharing apps in iTune
  • Next by Date: Default keyword selector type
  • Previous by thread: Re: [iPhone] Toolbar button and "Touch Down"
  • Next by thread: Re: [iPhone] Toolbar button and "Touch Down"
  • Index(es):
    • Date
    • Thread