Is there a way to make the alert view disappear automatically.. after some seconds, without user action. Currently I have my code as follow, and it require user to press ok to disappear the alert dialog. I would like to show the alert and not have user intervention, and just have the alert disappear in few seconds. Thanks for any comments.
My code as below:
func showAlertController (message: String) {
let alertController = UIAlertController(title: nil, message: message, preferredStyle: .Alert)
alertController.addAction(UIAlertAction(title: "OK", style: .Default, handler: nil))
presentViewController(alertController, animated: true, completion: nil)
}