'UITableView' failed to obtain a cell from its dataSource

前端 未结 3 480
旧时难觅i
旧时难觅i 2021-01-23 20:10

I updated Xcode and since then I\'v problems with my dataBase. code:

override func numberOfSections(in tableView: UITableView) -> Int {
    // return the numb         


        
3条回答
  •  礼貌的吻别
    2021-01-23 20:23

    Your method name for cellForRow is not correct.

    Replace this line

    func cellForRow(at indexPath: IndexPath) -> UITableViewCell?
    {
    

    with

    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
    

提交回复
热议问题