ios - 自定义 UITableView 单元格错误

标签 ios objective-c uitableview

我一直在按照指南创建自己的 UITableView 单元格,并且成功创建了类和接口(interface)。

当我尝试从默认的 UITableViewCell 更改我的应用程序代码时 到我定制的 SimpleTableCell 我收到以下错误: My code and the error

为什么我在上面代码中的注释区域运行良好时出现此错误?

错误出现在以下行中:

SimpleTableCell *cell = [tableView dequeueReusableCellWithIdentifier:simpleTableIdentifier];

最佳答案

确保您的文件顶部有

#import "SimpleTableCell.h"

或声明此类的任何其他 header 。

关于ios - 自定义 UITableView 单元格错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35256200/

相关文章:

ios - 根据构建配置嵌入不同的框架

ios - 在没有 Xcode 数据设计器的情况下使用核心数据迁移

objective-c - 此应用不允许查询方案电话

ios - 表格 View 中的嵌套 Collection View 更好或多个 Collection View

ios - 是否有与 editActionsForRowAtIndexPath 相反的 tableView 函数?

ios - CABasicAnimation + UIBezierPath

ios - 如何在水平collectionview中设置不同的单元格高度和宽度

objective-c - 从具有 URL 的 WebView 打印 PDF。 Objective C macOS

ios - 在调用 didReceiveRemoteNotification 时遇到问题

ios - 在表格 View 单元格中显示旧图像