简体   繁体   English

自定义UITableView单元格错误

[英]Custom UITableView Cell Error

I've been following a guide to create my own UITableView cell and I created the class and the interface successfully. 我一直在遵循创建自己的UITableView单元的指南,并且成功创建了类和接口。

When I tried to change my app code from the default UITableViewCell to my custom-made SimpleTableCell I got the following error: My code and the error 当我尝试将应用程序代码从默认的UITableViewCell更改为定制的SimpleTableCell ,出现以下错误: 我的代码和错误

Why I get this error while the commented area in the above code works great? 为什么在上述代码中的注释区域效果很好的情况下出现此错误?

The error appears in the following line: 错误出现在以下行:

SimpleTableCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];

Make sure that at the top of your file you have 确保文件顶部

#import "SimpleTableCell.h"

or whichever other header in which this class is declared. 或声明此类的其他头文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM