title: Programming autolayout swift
body: <p>I have in app: TextView and TableView. I create their in code. And now I need to make programming autolayout. But I don't know how it make. Please help.
  P.S. Sorry for my English =)</p>
  
  <pre><code>    let displayWidth: CGFloat = self.view.frame.width
      let displayHeight: CGFloat = self.view.frame.height
  
      myTextView = UITextView(frame: CGRect(x: 0, y: 20, width: displayWidth, height: displayHeight / 3))
      creatTextView()
  
      myTableView = UITableView(frame: CGRect(x: 0, y: displayHeight / 3, width: displayWidth, height: displayHeight * 2 / 3))
      createTable()
  </code></pre>