UITableView delegate and dataSource methods not getting called

后端 未结 8 1384
野性不改
野性不改 2021-02-13 14:23

I have a UIView which contains a UITableView. The tableview\'s delegate is set to my UIView, but it never calls the delegate methods:

-(id)init {
    self = [sup         


        
8条回答
  •  礼貌的吻别
    2021-02-13 14:48

    try this:

    override func numberOfSections(in tableView: UITableView) -> Int {
        return 1
    }
    

    i had this stupid problem too

提交回复
热议问题