title: UIAlertController Swift
body: <p>I have the following code</p>
  
  <pre><code>let alertController = UIAlertController(title: "error_title".localized, message: "error".localized, preferredStyle: .ActionSheet)
  
      let retryAction = UIAlertAction(
          title: "retry".localized,
          style: .Default,
          handler: {
              (action:UIAlertAction!) in
              self.fetch()
          }
      )
      alertController.addAction(retryAction)
  
      let cancelAction = UIAlertAction(
          title: "cancel".localized,
          style: .Default,
          handler: {
              (action:UIAlertAction!) in
              self.navigationController!.popViewControllerAnimated(true)
          }
      )
      alertController.addAction(cancelAction)
  
      self.presentViewController(alertController, animated: true, completion: nil)
  </code></pre>
  
  <p>The dialog is shown ok but when I click a button it does not call the handler function. Any idea?</p>