0

I setup my dataProvider Object in the storyboard enter image description here

link it in the storyboard I get an error when i run it.

[TableApp.ItemListViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x7f84f6803a70'

but it is okay when it do it in code inside my ViewDidLoad

I could not figure out why please help me understand.

Eric Yu
  • 213
  • 2
  • 12
  • can you show the code? – digit Feb 06 '17 at 23:26
  • Possible duplicate of [How can I debug 'unrecognized selector sent to instance' error](https://stackoverflow.com/questions/25853947/how-can-i-debug-unrecognized-selector-sent-to-instance-error) – Cœur Jul 08 '19 at 05:54

1 Answers1

0

I guess that you are incorrectly linking them.

you need to add UITableViewDelegate to your super Class

and in the viewDidLoad

self.tableView.delegate = self
self.tableView.dataSource = self

make sure you are linking the tableView as follows

IMG1. IMG2

you should have this!

You should end up with this

Mentos
  • 483
  • 1
  • 4
  • 14