2016-06-25 34 views
-1

我有这个错误,我已经看遍了所有和一些答案引用不存在的连接。主题:1信号SIGABRT类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年6月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'而终止应用程序,原因:'无法使单元退出标识符细胞 - 必须注册标识符的笔尖或一类或情节串连图板” ***第一掷调用堆栈连接原型细胞: ( 0的CoreFoundation 0x001fc494 exceptionPreprocess + 180 1 libobjc.A.dylib 0x01f10e02 objc_exception_throw + 50 2的CoreFoundation 0x001fc32a + [NSException提高:格式:参数:] + 138 3基础0x00641322 - [NSAssertionHandler handleFailureInMethod:对象:文件:LINENUMBER:描述:] + 118 4的UIKit 0x00b61afc - [UITableView的dequeueReusableCellWithIdentifier:forIndexPath :] + 258 5 ShoppingList 0x0000a723 _TFC12ShoppingList14ViewController9tableViewfTCSo11UITableView21cellForRowAtIndexPathCSo11NSIndexPath_CSo15UITableViewCell + 147 6 ShoppingList 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 layoutSubviews] + 214 13 UIKit 0x00abb3d4 - [UIView(CALayerDelegate)layoutSublayersOfLayer:] + 810 14 libobjc.A。dylib 0x01f25059 - [NSObject的performSelector:withObject:] + 70 15 QuartzCore 0x05300096 - [CALayer的layoutSublayers] + 144 16 QuartzCore 0x052f38b6 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 388 17 QuartzCore 0x052f371a _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26 18 QuartzCore 0x052e5ee7 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 317 19 QuartzCore 0x0531a847 _ZN2CA11Transaction6commitEv + 561 20 QuartzCore 0x0531c0b8 _ZN2CA11Transaction17flush_transactionEv + 50 21的UIKit 0x009e49b1 _UIApplicationHandleEventQueue + 8379 22的CoreFoundation 0x0010ee5f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 1 5 23的CoreFoundation 0x00104aeb __CFRunLoopDoSources0 + 523 24的CoreFoundation 0x00103f08 __CFRunLoopRun + 1032 25的CoreFoundation 0x00103846 CFRunLoopRunSpecific + 470 26的CoreFoundation 0x0010365b CFRunLoopRunInMode + 123个 27 GraphicsServices 0x046d2664 GSEventRunModal + 192 28个GraphicsServices 0x046d24a1 GSEventRun + 104 29的UIKit 0x009eaeb9 UIApplicationMain + 160 30 ShoppingList 0x0000bff1主+ 145 31 libdyld.dylib 0x02927a25开始+ 1 ) 的libC++ abi.dylib:与类型NSException的未捕获的异常终止

+1

上面的错误信息清楚地表明你的代码试图设置一个表格单元格,其标识符与你提供的任何定义不同(例如在故事板中)。你需要检查。 – Feldur

+0

非常感谢,你刚刚度过了我的一天!我如何将此标记为答案?因为这是一个评论,而不是一个答案。 – arthurbas

回答

1

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