Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tap gesture recognizer on view to close the menu #9

Closed
Jackson0111 opened this issue Mar 15, 2016 · 4 comments
Closed

Add tap gesture recognizer on view to close the menu #9

Jackson0111 opened this issue Mar 15, 2016 · 4 comments

Comments

@Jackson0111
Copy link

Great work! I was just wondering if there was a function that I can call to close the menu without selecting ? For example, I would like to add a tap gesture recognizer on self.view so that users can close the menu by tapping anywhere on the screen.

@0ber
Copy link
Contributor

0ber commented Mar 16, 2016

added method public func hideButtons(duration: Double, hideDelay: Double = 0)

@0ber 0ber closed this as completed Mar 16, 2016
@Jackson0111
Copy link
Author

AWESOME! Just a stupid question, but I did pod install but couldn't find this function, any idea why that's happening? I just ended up adding hideButtons in my own pod

@0ber
Copy link
Contributor

0ber commented Mar 17, 2016

pod update )

@Jackson0111
Copy link
Author

Thanks! Great! I think having a didDisplay delegate function would be good, because I'm adding a tap gesture but I want to remove it when the menu is closed so that the view can pick up other gesture recognizers to do something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants