关于错误 reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
来源:互联网 发布:深圳软件产业基地招聘 编辑:程序博客网 时间:2024/06/01 09:01
reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
今天运行的时候 直接就报错 程序运行不出来
错误就是 reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
这个你初看可能是觉得没有传递有效的cell到单元格中
所以我进行了断点调试 发现我的模型中有数据 可是传不到我自定义的cell中
最后发现是我的自定义cell 的 Identfier 这个属性没有设置
所以只要你把这个属性设置成你 准备重用单元格的标记 就行了
如图 我的cell ID 是 app_cell 加上之后 成功运行
0 0
- 关于错误 reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
- UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath
- UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath
- UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:
- 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:
- UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath
- UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath
- Ios 自定义表示图出现的相关问题UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
- reason: 'UITableView failed to obtain a cell from its dataSource'
- UITableView错误failed to obtain a cell from its dataSource的原因和解决办法
- TableView异常failed to obtain a cell from its dataSource
- 关于- tableView:cellForRowAtIndexPath:里cell的frame问题
- tableView滑动崩溃 failed to obtain a cell from its dataSource
- UITableView不掉用tableView: cellForRowAtIndexPath方法
- 关于tableView:cellForRowAtIndexPath的解释
- failed to obtain a cell from its dataSource
- failed to obtain a cell from its dataSource
- failed to obtain a cell from its dataSource 解决方案
- 物联网的媒介——java usb串口通信
- css定义背景图片不显示原因
- 基础二:service生命周期
- 定义和使用字典资源(ResourceDictionary)
- 正则表达式替换单词首字母大写
- 关于错误 reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
- Android bitmap图片处理
- 理清android中values, values-v11, value-v14之间的关系
- 一个即时排名的demo
- Activity的四种launchMode
- Cocos2dx-jsb 中Node的onEnter过程分析(1)
- yum的工作原理以及如何建立yum仓库
- Flume学习4_CentOS6.5下,Flume安装及配置详细教程-存疑版
- Android中Application设置全局变量以及传值