Ios 自定义表示图出现的相关有关问题UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'

Ios 自定义表示图出现的相关问题UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'


解决此问题的方法 是在Ios 自定义表示图出现的相关有关问题UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'Ios 自定义表示图出现的相关有关问题UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'

加上个 标示符 Cell


自定义 customCell .h 代码如下

Ios 自定义表示图出现的相关有关问题UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'

Ios 自定义表示图出现的相关有关问题UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'ViewController.m 文件中 代码如下

Ios 自定义表示图出现的相关有关问题UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'


运行结果

Ios 自定义表示图出现的相关有关问题UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'



Ios 自定义表示图出现的相关有关问题UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'

艹 直接在这里粘图 不行