nickpan
nickpan

Reputation: 63

compiler not running tableview datasource methods

enter image description here

I met a question that i ensured setted datasource and delegate ,implemention two datasource methods ,but compiler not runnin this two methods,have someone tell me why?

Upvotes: 0

Views: 43

Answers (1)

SeanChense
SeanChense

Reputation: 846

When you assign self to tableView's dataSource, you have to make sure your tableView is not nil, then everything will be ok.

Upvotes: 1

Related Questions