title: How to use pushviewcontroller on uitableviewcell swift
body: <p>I create a new <code>UITableviewcell.swift</code> from <code>UITableView</code>, and I want to use alert button to push <code>UITableView</code> to other view.</p>
  
  <p>I try to use some method of <code>instantiateViewController</code> as below:</p>
  
  <pre><code>let sb: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
  
  let vc = sb.instantiateViewController(withIdentifier: "MyViewController")
  </code></pre>
  
  <p>and I try:</p>
  
  <ol>
  <li><code>self.navigationController?.pushViewController</code> (uitableviewcell has no member navigationController)</li>
  <li>as above, use <code>self.window?.rootViewController?</code> to replace <code>Self</code> ,but it's useless (my <code>RootView</code> is <code>SWRevealViewController</code>)</li>
  </ol>
  
  <p>How can I do that?</p>