Swift TableView in a UIView not displaying data

后端 未结 4 1185
孤独总比滥情好
孤独总比滥情好 2021-01-05 08:32

I want to create a page which should have a map on the top and 5 row tableview at the bottom. So i created UIViewController put my Map View then put TableView. I created myV

4条回答
  •  攒了一身酷
    2021-01-05 09:14

    try this:

    override func viewDidLoad() {
        super.viewDidLoad()
    
        // Add this
        tableView.delegate = self
        tableView.dataSource = self
    }
    

提交回复
热议问题