Guest User

Untitled

a guest
Jan 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. ...
  2.  
  3. override func viewDidLoad() {
  4. super.viewDidLoad()
  5. setupTableView()
  6. }
  7.  
  8. func setupTableView() {
  9. tableview.register(UITableViewCell.self, forCellReuseIdentifier: "cellId")
  10.  
  11. view.addSubview(tableview)
  12.  
  13. NSLayoutConstraint.activate([
  14. tableview.topAnchor.constraint(equalTo: self.view.topAnchor),
  15. tableview.bottomAnchor.constraint(equalTo: self.view.bottomAnchor),
  16. tableview.rightAnchor.constraint(equalTo: self.view.rightAnchor),
  17. tableview.leftAnchor.constraint(equalTo: self.view.leftAnchor)
  18. ])
  19. }
Add Comment
Please, Sign In to add comment