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

programmatically dismiss an alert? #215

Open
galileomd opened this issue Jul 18, 2016 · 3 comments
Open

programmatically dismiss an alert? #215

galileomd opened this issue Jul 18, 2016 · 3 comments

Comments

@galileomd
Copy link

is there a way to programmatically dismiss an alert? not autodismiss, we have an external trigger we capture and would like the alert to respond as well.

@etherboy
Copy link

The various show... methods (showTitle, showError, etc) return an instance of SCLAlertViewResponder. Store that object and call its close method when you want to dismiss the alert.

@Dev-
Copy link

Dev- commented Oct 19, 2016

let alert = SCLAlertView()
alert.hideView() 

@glennposadas
Copy link

Hi all, can we now close this? Just dropping by to tell you all that I've spent like 2 nights dismissing the alert. I've been tracking my screen hierarchies, doing child.removeFromParentViewController(), alert.dismissViewController..... OMG. Maybe we should include this hideView() in the documentation? Thanks.

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

4 participants