Re: [iPhone] Toolbar button and "Touch Down"
Re: [iPhone] Toolbar button and "Touch Down"
- Subject: Re: [iPhone] Toolbar button and "Touch Down"
- From: Jonathon Kuo <email@hidden>
- Date: Mon, 15 Nov 2010 10:02:44 -0800
Interesting idea, probably a little beyond me. :) I was hoping there might be a direct way of having the UIBarButtonItem respond immediately to a user's touch, instead of waiting until the user's finger is lifted.
On Nov 12, 2010, at 8:53 PM, Dave DeLong wrote:
> 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