Reputation: 63
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
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