cellForRowAtIndexPath不执行

来源:互联网 发布:胡金铨 知乎 编辑:程序博客网 时间:2024/06/07 09:25

cellForRowAtIndexPath不执行的原因

1.dataSource和delegate没有设置

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

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



作者:Ashen
链接:http://www.jianshu.com/p/88a735f0152e
來源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
阅读全文
0 0