What calls tableView:cellForRowAtIndexPath
All the cells in my table are blank. I noticed that tableView:cellForRowAt开发者_运维知识库IndexPath is not being called, which I think is causing this to happen. What calls this method?
The tableview calls its datasource methods.
In order for cellForRowAtIndexPath:
to be called, there needs to be rows in the tableview, which the method numberOfRowsInSection
is for.
Hop on over to the Apple documentation on the UITableViewDataSource
protocol.
精彩评论