title: How to Call a Function when Ok is pressed in an UIAlert
body: <p>Im try to simply call a function called "GoToNewShoot" When the user press the "ok" button when the Alert pops up Thanks!.</p>
  
  <p>Code:</p>
  
  <pre><code>   @IBAction func GobacktoCamera(sender: AnyObject) {
      var alertController = UIAlertController(title: "Just Checking", message: "Are You Sure You Want to Start over ", preferredStyle: UIAlertControllerStyle.Alert)
      alertController.addAction(UIAlertAction(title: "Yes", style: UIAlertActionStyle.Cancel, handler: nil))
      self.presentViewController(alertController, animated: true, completion: nil)
  </code></pre>