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

Touch outside the Alert to dismiss? #18

Open
eeschimosu opened this issue Nov 1, 2015 · 1 comment
Open

Touch outside the Alert to dismiss? #18

eeschimosu opened this issue Nov 1, 2015 · 1 comment

Comments

@eeschimosu
Copy link

Is it possible to touch outside the box and the alert to dismiss at this poit?

@misuqian
Copy link

// Handle ContainerView tap gesture
func handleContainerViewTapGesture(sender: AnyObject) {

// cancel action
let action = actions[cancelButtonTag - 1] as! DOAlertAction
if (action.handler != nil) {
action.handler(action)
}
self.dismissViewControllerAnimated(true, completion: nil)
}

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