线程:1 个信号 SIGABRT class AppDelegate:UIResponder,UIApplicationDelegate

Thread: 1 signal SIGABRT class AppDelegate: UIResponder, UIApplicationDelegate

我遇到了这个错误,我已经仔细查看了上面的错误,有些答案指的是一个不存在的连接。

我所有的关系看起来都很好。

我是初学者,我看到的所有解决此错误的方法都是来自连接 IBOutlet 或代码错误,但代码与我的不同。

我之前遇到过这个错误,我已经离开了这个项目并继续另一个项目,但我真的需要学习如何解决这个问题或者它从哪里来解决我未来的项目。

我的整个项目都在这里。 https://www.dropbox.com/s/l9jv8z8mve7luh4/ShoppingList.zip?dl=0

连接屏幕。 https://www.dropbox.com/s/1khbq6f8ylhx5yp/Screen%20Shot%202016-06-25%20at%2011.59.00%20AM.png?dl=0

调试错误如下。

感谢您的帮助。非常感谢您的宝贵时间。

2016-06-25 11:45:50.392 ShoppingList[2334:156567] * -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:], /BuildRoot/Library/Caches/com.apple 断言失败.xbs/Sources/UIKit_Sim/UIKit-3512.60.7/UITableView.m:6573 2016-06-25 11:45:50.397 ShoppingList[2334:156567] * 由于未捕获的异常 'NSInternalInconsistencyException' 而终止应用程序,原因:'unable to dequeue a cell with identifier cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard' *** 首先抛出调用栈: ( 0 CoreFoundation 0x001fc494 exceptionPreprocess + 180 1 libobjc.A.dylib 0x01f10e02 objc_exception_throw + 50 2 CoreFoundation 0x001fc32a +[NSException raise:format:arguments:] + 138 3 基金会 0x00641322 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 118 4 UIKit 0x00b61afc -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] + 258 5 购物清单 0x0000a723 _TFC12ShoppingList14ViewController9tableViewfTCSo11UITableView21cellForRowAtIndexPathCSo11NSIndexPath_CSo15UITableViewCell + 147 6 购物清单 0x0000a969 _TToFC12ShoppingList14ViewController9tableViewfTCSo11UITableView21cellForRowAtIndexPathCSo11NSIndexPath_CSo15UITableViewCell + 89 7 UIKit 0x00b76934 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 822 8 UIKit 0x00b76a7d -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 90 9 UIKit 0x00b46b32 -[UITableView _updateVisibleCellsNow:isRecursive:] + 3347 10 UIKit 0x00b65416 __29-[UITableView layoutSubviews]_block_invoke + 52 11 UIKit 0x00b806cc -[UITableView _performWithCachedTraitCollection:] + 88 12 UIKit 0x00b652eb-[UITableView 布局子视图] + 214 13 UIKit 0x00abb3d4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 810 14 libobjc.A.dylib 0x01f25059 -[NSObject performSelector:withObject:] + 70 15 QuartzCore 0x05300096 -[CALayer layoutSublayers] + 144 16 石英核 0x052f38b6 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 388 17 石英核 0x052f371a _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26 18 石英核 0x052e5ee7 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 317 19 石英核心 0x0531a847 _ZN2CA11Transaction6commitEv + 561 20 石英核 0x0531c0b8 _ZN2CA11Transaction17flush_transactionEv + 50 21 用户界面套件 0x009e49b1 _UIApplicationHandleEventQueue + 8379 22 核心基础 0x0010ee5f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 15 23 核心基础 0x00104aeb __CFRunLoopDoSources0 + 523 24 核心基础 0x00103f08 __CFRunLoopRun + 1032 25 核心基础 0x00103846 CFRunLoopRunSpecific + 470 26 核心基础 0x0010365b CFRunLoopRunInMode + 123 27 图形服务 0x046d2664 GSEventRunModal + 192 28 图形服务 0x046d24a1 GSEventRun + 104 29 UIKit 0x009eaeb9 UIApplicationMain + 160 30 购物清单 0x0000bff1 主 + 145 31 libdyld.dylib 0x02927a25 开始 + 1 ) libc++abi.dylib:以 NSException

类型的未捕获异常终止

上面的错误消息清楚地表明您的代码正在尝试设置一个 table 单元格,其标识符不同于您为其提供定义的任何内容(例如在故事板中)。您需要检查