http://stackoverflow.com/questions/4016554/can-you-create-a-uibarbuttonitem-with-a-custom-view-in-interface-builder



On Wed, Jul 10, 2013 at 5:53 PM, Rick Mann <rm...@latencyzero.com> wrote:

> I'm building it in IB.
>
> On Jul 10, 2013, at 15:46 , Luther Baker <lutherba...@gmail.com> wrote:
>
> > Which constructor are you using?
> >
> >
> >
> http://developer.apple.com/library/ios/#documentation/uikit/reference/UIBarButtonItem_Class/Reference/Reference.html
> >
> > - (id)initWithCustomView:(UIView<
> http://developer.apple.com/library/ios/documentation/uikit/reference/UIView_Class/UIView/UIView.html#//apple_ref/doc/c_ref/UIView
> >
> > *)*customView*
> > *
> > *
> > The bar button item created by this method does not call the action
> method
> > of its target in response to user interactions. Instead, the bar button
> > item expects the specified custom view to handle any user interactions
> and
> > provide an appropriate response.*
> > *
> >
> >
> >
> > On Wed, Jul 10, 2013 at 3:54 PM, Rick Mann <rm...@latencyzero.com>
> wrote:
> >
> >>
> >> On Jul 10, 2013, at 08:28 , Rick Aurbach <r...@aurbach.com> wrote:
> >>
> >>> I haven't tried this, so I don't know whether it will work, but…
> >>>
> >>> have you tried leaving the buttons enabled but disabling user
> >> interaction for them? Of course, if that works then it leaves open the
> >> larger question of whether your UI goals are best served by displaying
> >> buttons that can't be pushed...
> >>
> >> Unfortunately, there's no userInteractionEnabled property.
> >>
> >> And, in this case, they don't have the appearance of buttons. They're
> just
> >> UIBarButtonItems because for whatever reason, Apple chose not to make
> these
> >> things UIViews.
> >>
> >> Here's a screenshot:
> >>
> >>        http://cl.ly/image/000P2Y1v2D2j
> >>
> >>
> >> --
> >> Rick
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >>
> >> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> >>
> >> 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:
> >>
> https://lists.apple.com/mailman/options/cocoa-dev/lutherbaker%40gmail.com
> >>
> >> This email sent to lutherba...@gmail.com
> >>
> > _______________________________________________
> >
> > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> >
> > 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:
> >
> https://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com
> >
> > This email sent to rm...@latencyzero.com
>
>
> --
> Rick
>
>
>
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to