coredata问题求指教。。。

图片说明一运行就报错,跪求大神指点
下面是控制台显示:
2015-09-05 06:40:03.802 Scd[687:12249] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(
0 CoreFoundation 0x0000000109726a75 exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010b27ebb7 objc_exception_throw + 45
2 CoreFoundation 0x00000001095f50ca -[
NSArrayM insertObject:atIndex:] + 954
3 UIKit 0x000000010a094a24 46-[UITableView _updateWithItems:updateSupport:]_block_invoke919 + 177
4 UIKit 0x000000010a02bbb2 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 473
5 UIKit 0x000000010a02be07 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:] + 57
6 UIKit 0x000000010a0945c1 -[UITableView _updateWithItems:updateSupport:] + 2800
7 UIKit 0x000000010a08e637 -[UITableView _endCellAnimationsWithContext:] + 11935
8 Scd 0x000000010919042e _TFFC3Scd19TableViewController7addNameFS0_FPSs9AnyObject_T_U_FGSQCSo13UIAlertAction_T
promote0 + 1854
9 Scd 0x00000001091908b7 TTRXFo_oGSQCSo13UIAlertAction_dT__XFo_iGSQS___iT__ + 23
10 Scd 0x000000010918bc11 TPA_TTRXFo_oGSQCSo13UIAlertAction__dT__XFo_iGSQS___iT__ + 81
11 Scd 0x000000010918fca0 TTRXFo_iGSQCSo13UIAlertAction_iT__XFo_oGSQS___dT__ + 32
12 Scd 0x000000010918fce8 TTRXFo_oGSQCSo13UIAlertAction_dT__XFdCb_dGSQS___dT__ + 56
13 UIKit 0x000000010a212587 -[UIAlertController fireOffActionOnTargetIfValidForAction:] + 55
14 UIKit 0x000000010a212ac9 __85-[UIAlertController _dismissAnimated:triggeringAction:triggeredByPopoverDimmingView:]_block_invoke + 30
15 UIKit 0x000000010a0bb8bc -[UIPresentationController transitionDidFinish:] + 1118
16 UIKit 0x000000010a0bdcfe __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_2 + 133
17 UIKit 0x000000010a712fd0 -[_UIViewControllerTransitionContext completeTransition:] + 110
18 UIKit 0x000000010a02b963 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 326
19 UIKit 0x000000010a0136ca -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 209
20 UIKit 0x000000010a013a00 -[UIViewAnimationState animationDidStop:finished:] + 76
21 QuartzCore 0x000000010df3665e _ZN2CA5Layer23run_animation_callbacksEPv + 308
22 libdispatch.dylib 0x000000010ba25614 _dispatch_client_callout + 8
23 libdispatch.dylib 0x000000010ba0da1c _dispatch_main_queue_callback_4CF + 1664
24 CoreFoundation 0x000000010968e749 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
_ + 9
25 CoreFoundation 0x000000010965162b __CFRunLoopRun + 2043
26 CoreFoundation 0x0000000109650bc6 CFRunLoopRunSpecific + 470
27 GraphicsServices 0x000000010d82ea58 GSEventRunModal + 161
28 UIKit 0x0000000109fb9580 UIApplicationMain + 1282
29 Scd 0x000000010918781e top_level_code + 78
30 Scd 0x000000010918785a main + 42
31 libdyld.dylib 0x000000010ba5a145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

查看全部
u013447531
杨时伟
2015/09/06 02:55
  • coredata
  • ios
  • xcode
  • 点赞
  • 收藏
  • 回答
    私信

3个回复