Swift: Table view superclass error

后端 未结 4 1439
我寻月下人不归
我寻月下人不归 2021-01-15 21:00

I have created a slide out menu using Swift. I have done this many times before, but when I created it today, I get this error (see screenshot). It could just be a simple mi

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-15 21:07

    Try to removing "!", declaration for this function is:

     func tableView(_ tableView: UITableView,cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
    

    and make sure you have set delegate and datasource of tableview to "self"

提交回复
热议问题