小编dog*_*kis的帖子

出现 UITableView 错误“无法使用标识符单元格使单元格出列”

我正在使用 UITableViewController 创建应用程序,但收到错误:

“无法使用标识符单元使单元出列 - 必须为标识符注册笔尖或类,或者在情节提要中连接原型单元”

我不明白如何找到解决方案并修复它。

2018-09-15 01:28:28.609848 + 0300 Yemekler [6554:482441] *** -[UITableView _dequeueReusableCellWithIdentifier:forIndexPath:usingPresentationValues:],/BuildRoot/Library/Caches/com.apple.xbs/Sources/中的断言失败UIKit_Sim/UIKit-3698.54.4/UITableView.m:7879
2018-09-15 01:28:28.613237 + 0300 Yemekler [6554:482441] *** 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“无法使具有标识符单元格的单元格出队 - 必须注册笔尖或类用于标识符或连接故事板中的原型单元'
*** 首先抛出调用堆栈:
(
    0 核心基础 0x0000000112f461e6 __exceptionPreprocess + 294
    1 libobjc.A.dylib 0x000000010f3ac031 objc_异常_抛出 + 48
    2 CoreFoundation 0x0000000112f4b472 +[NSException 引发:格式:参数:] + 98
    3 基础 0x000000010ee4f652 -[NSAssertionHandler handleFailureInMethod:对象:文件:行号:描述:] + 193
    4 UIKit 0x000000010fd8a496 -[UITableView _dequeueReusableCellWithIdentifier:forIndexPath:usingPresentationValues:] + 879
    5 UIKit 0x000000010fd8a0f3 -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] + 91
    6 耶梅克勒 0x000000010ea9de72 _T08Yemekler17YemekTarifleriTVCC9tableViewSo07UITableF4CellCSo0gF0C_10Foundation9IndexPathV12cellForRowAttF + 226
    7 耶梅克勒 0x000000010ea9e34c _T08Yemekler17YemekTarifleriTVCC9tableViewSo07UITableF4CellCSo0gF0C_10Foundation9IndexPathV12cellForRowAttFTo + …

uitableview tableview ios swift

4
推荐指数
1
解决办法
4629
查看次数

标签 统计

ios ×1

swift ×1

tableview ×1

uitableview ×1