diff --git a/DBAlertController/Pod/DBAlertController.swift b/DBAlertController/Pod/DBAlertController.swift index f27b997..2ee2363 100644 --- a/DBAlertController/Pod/DBAlertController.swift +++ b/DBAlertController/Pod/DBAlertController.swift @@ -40,6 +40,9 @@ public class DBAlertController: UIAlertController { */ public func dismiss(animated flag: Bool = true, completion: (() -> Void)? = nil) { dismissViewControllerAnimated(flag, completion: completion) + if let app = UIApplication.sharedApplication().delegate as? AppDelegate, let window = app.window { + window.makeKeyAndVisible() + } }