美文网首页iOS Developer代码改变世界iOS 开发
cellForRowAtIndexPath不执行的解决方法

cellForRowAtIndexPath不执行的解决方法

作者: Ashen | 来源:发表于2015-11-30 12:08 被阅读7087次

cellForRowAtIndexPath不执行的原因

1.dataSource和delegate没有设置

2.numberOfRowsInSection和numberOfRowsInSection返回的数据不是大于�0的整数

3.tableView没有添加到父视图上(这种情况,第2点种的方法都执行了)

相关文章

网友评论

    本文标题:cellForRowAtIndexPath不执行的解决方法

    本文链接:https://www.haomeiwen.com/subject/clrjhttx.html