UITableView woes: Keep on getting this runtime error unrecognised selector

后端 未结 4 1176
后悔当初
后悔当初 2021-01-06 16:37

HI guys,

I have this error that is keeping me from moving forward. I basically have an application which contains a UITabViewController which points to individual UI

4条回答
  •  佛祖请我去吃肉
    2021-01-06 17:07

    It looks like your code is sending a tableView:numberOfRowsInSection: message to a UIViewController instance. I think it should be sending that message to an object that implements the UITableViewDataSource protocol.

    Check your implementation file for the UITableViewController you are using to make sure it has the tableView:numberOfRowsInSection: method implemented (or uncommented, depending on how you generated the file).

    If you have any code, post it.

提交回复
热议问题