UIToolbar, Detecting "Touch Up Inside"/Press?

Discussion in 'iOS Development' started by whocaresit, Apr 18, 2009.

  1. whocaresit

    whocaresit New Member

    Joined:
    Mar 11, 2009
    Messages:
    48
    Likes Received:
    0
    I was planning on making a autohiding bar; however, there's no Pressed action for UIToolbar... Help!!

    Please Register or Log in to view images

  2. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    The toolbar, or the button that's on it? There's a big difference between the two.

    Please see my Introduction to Xcode/Interface Builder part III in the tutorial section. And I'd strongly advise reading parts I and II in the same forum.


    Also important to note: the SDK comes with documentation. Use it.
  3. whocaresit

    whocaresit New Member

    Joined:
    Mar 11, 2009
    Messages:
    48
    Likes Received:
    0
    Now working, even if I press on the toolbar, the button detects the press, so no problem !

    Please Register or Log in to view images

  4. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    If you're trying to get the toolbar itself to respond to touches, then you're going to have to subclass UIToolbar and override the responder methods.

Share This Page