forked from TimCinel/ActionSheetPicker
-
-
Notifications
You must be signed in to change notification settings - Fork 739
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
Dismiss action sheet by tapping on background #80
Labels
Comments
Hi. |
@jklp my mistake - it really closing by tap outside. |
anas-ambri
added a commit
to guestful/ActionSheetPicker-3.0
that referenced
this issue
Oct 27, 2014
…taps. This also permits dismissing the action sheet when clicking on the background. The check for which view has been clicked is pretty rudimentary, so I would be interested if someone can come up with something better. Closes skywinder#80
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The standard action sheet (UIActionSheet) has a behaviour whereby if you tap on the background (which is not the action sheet), it dismisses the sheet. I think the same thing should occur for this library too.
To implement, I put a tap recogniser on the window in the SWActionSheet class to detect the tap, but that seems a little messy, and was thinking there must be a cleaner way to do it - thoughts?
Thanks
Jerrold
The text was updated successfully, but these errors were encountered: