title: How do i create a navigationBar in UITableViewController in Swift?
body: <p>I am new to IOS, </p>
  
  <p>I would like to add a <code>UINavigationBar</code> to <code>UITableViewController</code>, I have tried this:</p>
  
  <pre><code>var navBar: UINavigationBar = UINavigationBar(frame: CGRect(x:0, y:0, width:320, height:80))
  </code></pre>
  
  <p>then, </p>
  
  <pre><code>self.view .addSubview(navBar)
  </code></pre>
  
  <p>Thanks </p>