Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- override func viewDidLoad() {
- super.viewDidLoad()
- setupTableView()
- }
- func setupTableView() {
- tableview.register(UITableViewCell.self, forCellReuseIdentifier: "cellId")
- view.addSubview(tableview)
- NSLayoutConstraint.activate([
- tableview.topAnchor.constraint(equalTo: self.view.topAnchor),
- tableview.bottomAnchor.constraint(equalTo: self.view.bottomAnchor),
- tableview.rightAnchor.constraint(equalTo: self.view.rightAnchor),
- tableview.leftAnchor.constraint(equalTo: self.view.leftAnchor)
- ])
- }
Add Comment
Please, Sign In to add comment