Advice on user experience for using gestures

Discussion in 'iOS Programming' started by mrl72, Jan 21, 2011.

  1. mrl72 macrumors regular

    Apr 20, 2008
    Hi all -

    I have a horizontal menu that appears when the user swipes up on the bottom of the screen. It works great but I'm trying to figure out the best way to hide the menu once it appears. Obviously a selection on the menu will hide it by default, but what to do if user wants to hide it again without making a menu selection? I can't swipe back down to make the menu hide again since the buttons on the menu override the gestures set on the view. Therefore, I'm left with either touching off the menu to hide it again, have another button on the menu to hide the menu, or have a timer hide it after x seconds of inactivity.

    What would you recommend for best experience?

  2. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    Actually, I believe you can. You just need to set the buttons to ignore the swipe-down gesture and then pass things along to the next element in the responder chain.
  3. mrl72 thread starter macrumors regular

    Apr 20, 2008
    Thanks I didn't know that, I'll look into it. I'm having another problem now anyway so might have to do away with the hiding/showing of the menu, even if it does look pretty cool. I need to put a scroll view under the menu which takes up the entire screen so now the menu doesn't pop up at all because the scrollview is overriding the swipe gesture now. :( Oh well... unless there is a way to prevent the scrollview from scrolling up/down if swiped within a 100pixel area of the bottom of the screen I'm SOL.

Share This Page