Reputation: 44312
numberOfSectionsInTableView
and numberOfRowsInSection
are both called on my table. The array I'm using has 3 items in it.
cellForRowAtIndexPath
is never called. What would cause this behavior?
Upvotes: 0
Views: 59
Reputation: 3400
Might be something to do with the dimensions of your tableView. See this other answer for details. Basically, what is says is that if your tableView is too small, then the cellForRowAtIndexPath
method is never called. Try making your tableView smaller, or decreasing the size of your header or footer of the tableView. If this doesn't work, try reloading the table using tableView.reloadData()
on the main thread.
Upvotes: 2