How to Show a UIAlertController and Perform an Action when User clicks OK?
<p>I am stuck with a <code>UIAlertController</code>. </p>

<p>I have this alert view:</p>

<pre><code>@IBAction func AddPatientButton(sender: AnyObject) {
    let alert = UIAlertController(title:"Registro Paciente", message: "Paciente Registrado", preferredStyle: UIAlertControllerStyle.Alert)

    alert.addAction(UIAlertAction(title:"Ok", style: UIAlertActionStyle.Default, handler: nil))

    self.presentViewController(alert, animated: true, completion: nil)


}
</code></pre>

<p>And it shows me an alert view correctly. But what I want is that when the user press the button Ok, this button performs a segue and send the user to another ViewController.</p>