title: View's width and height do not change after orientation
body: <p>I use xibs and do most of job programatically.Not touching storyboard. I want to use storyboard just for navigation. </p>
  
  <p>My problem is , after orientation view height and width remain same. How do I get width and height on both portrait and orientation mode after the app run.</p>
  
  <pre><code>class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, HeaderStyle1Delegate, FieldStyle1Delegate, ButtonStyle1Delegate {
  
  var tableStyle = UITableView()
  var header: HeaderStyle1!
  
  override func viewDidLoad() {
      super.viewDidLoad()
      createView() // call function for create header, table and regis xib/UINib
  }
  
  func createView() {
  
      //Create Header
      header = HeaderStyle1(frame: CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: 80))
      header.delegate = self
      self.view.addSubview(header)
  
      //Create TableView
      tableStyle.frame = CGRect(x: 0, y: 80, width: self.view.frame.size.width, height: self.view.frame.size.height - 80)
      tableStyle.delegate = self
      tableStyle.dataSource = self
      tableStyle.backgroundColor = UIColor(red: 245.0/255.0, green:
          248.0/255.0, blue: 252.0/255.0, alpha: 1.0)
      tableStyle.separatorColor = UIColor.clear
      tableStyle.allowsSelection = false
      tableStyle.isScrollEnabled = true
  ......
  ...
  ..
  }
  </code></pre>
  
  <p>Screenshoots</p>
  
  <p><a href="https://i.stack.imgur.com/ru8sc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ru8sc.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/ehaka.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ehaka.png" alt="enter image description here"></a></p>
  
  <p>My ViewController. (it is full empty as I mentioned)</p>
  
  <p><a href="https://i.stack.imgur.com/IMGVY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IMGVY.png" alt="enter image description here"></a></p>