Re: [iPhone] Toolbar button and "Touch Down"
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