【发布时间】:2021-06-23 18:24:33
【问题描述】:
我的应用程序在尝试创建表格视图时立即崩溃,不知道出了什么问题,因为 nib 中的单元重用标识符与用于注册 nib 的标识符匹配。 将不胜感激任何帮助 我使用的是虚拟机,所以无法复制粘贴错误,所以这里打印一下:
错误信息:
2021-06-23 17:57:51.392316+0100
ArmazemProcessador[8986:25810358] *** Assertion
failure in -[UITableView
_dequeueReusableViewOfType:withIdentifier:],
/BuildRoot/Library/Caches/com.apple
•xbs/Sources/UIKitCore_Sim/UIKit-3899.22
•15 UITableView.m:8566
2021-06-23 17:57:51.396208+0100
ArmazemProcessador[8986:25810358] *** Terminating
app due to uncaught exception
'NSInternalInconsistencyException', reason: 'cell
reuse identifier in nib (CutomTableViewCell) does
not match the identifier used to register the nib
(CustomTableViewCell)'
*** First throw call stack:
【问题讨论】:
-
错字 -
CutomTableViewCell/CustomTableViewCell -
天哪,我看了 2 个小时,因为压力而掉头发,即使在你发表评论后,我也不得不打印它并放大以区分,谢谢
标签: ios swift tableview reuseidentifier