开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜