title: How to add an action to a UIAlertView button using Swift iOS
body: <p>I want to add another button other than the "OK" button which should just dismiss the alert.
  I want the other button to call a certain function.</p>
  
  <pre><code>var logInErrorAlert: UIAlertView = UIAlertView()
  logInErrorAlert.title = "Ooops"
  logInErrorAlert.message = "Unable to log in."
  logInErrorAlert.addButtonWithTitle("Ok")
  </code></pre>
  
  <p>How do I add another button to this alert, and then allow it to call a function once clicks so lets say we want the new button to call:</p>
  
  <pre><code> retry()
  </code></pre>