title: Swift - How call UIVIewController from a Button in UITableViewCell
body: <p>I have a <code>UITableViewCell</code> (.xib) and in this cell i have a Button, When pressed the button i would like to open a <code>UIViewController</code>. </p>
  
  <p><a href="https://i.stack.imgur.com/kAYzZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kAYzZ.png" alt="enter image description here"></a></p>
  
  <p>The icon is my button</p>
  
  <p>In my <code>TableViewController</code>: </p>
  
  <pre><code>class DetalhaConsultaServidorViewController: UITableViewController {
  
  override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
  ...
  
      let cell = Bundle.main.loadNibNamed("HistoricoClienteServidorTableViewCell", owner: self, options: nil)?.first as! HistoricoClienteServidorTableViewCell
  
  ...
      return cell
  }
  </code></pre>
  
  <p>and my <code>CustomCell</code> class: </p>
  
  <pre><code>class HistoricoClienteServidorTableViewCell: UITableViewCell {
  
      @IBAction func actionButton(_ sender: Any) {
  
          //how open a UIViewController (xib or main.storyboard)?
      }
      ...
  </code></pre>
  
  <p>How open a <code>UIViewController</code> (xib or main.storyboard)?</p>
  
  <p>Thanks!</p>