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.
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.
let alert = SCLAlertView()
alert.hideView()
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.
Most helpful comment
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 thishideView()
in the documentation? Thanks.