title: How to remove delay from UIAlertController?
body: <p>After I tap table cells, I am getting a delay of 4 to 5 seconds for the alert view to display. Below is the code</p>
  
  <pre><code>func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath){
  
  let cell = tableView.cellForRow(at: indexPath)!
  let alertController = UIAlertController(title: nil, message: nil, preferredStyle: .alert)
  
  let ok = UIAlertAction(title: "Ok", style: .default, handler: { (action) -&gt; Void in
      let cell = tableView.cellForRow(at: indexPath)!
      })
  let cancel = UIAlertAction(title: "Cancel", style: .cancel, handler: { (action) -&gt; Void in
  })
     alertController.addAction(ok)
     alertController.addAction(cancel)
  
  present(alertController, animated: true, completion: nil)
  }
  </code></pre>
  
  <p>How to avoid this delay?</p>