title: UIAlert in Swift that automatically disappears?
body: <p>I have the following code:</p>
  
  <pre><code>    /// Creates Alerts on screen for user.
  func notifyUser(title: String, message: String) -&gt; Void
  {
      let alert = UIAlertController(title: title,
          message: message,
          preferredStyle: UIAlertControllerStyle.Alert)
  
      let cancelAction = UIAlertAction(title: "OK",
          style: .Cancel, handler: nil)
  
      alert.addAction(cancelAction)
      UIApplication.sharedApplication().keyWindow?.rootViewController!.presentViewController(alert, animated: true,
          completion: nil)
  }
  </code></pre>
  
  <p>Which shows the following Alert:</p>
  
  <p><a href="https://i.stack.imgur.com/NXpjg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NXpjg.png" alt="enter image description here"></a></p>
  
  <p>I would prefer the Alert to appear for maybe 1-2 seconds and auto dismiss without having to click ok or dismiss. Is this possible?</p>