libc ++ abi.dylib:以NSException IOS类型的未捕获异常终止

时间:2015-07-03 12:25:12

标签: ios uitableview

日志错误如下

015-07-03 17:37:47.392 CoreData_Saha[4403:133938] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "jgh-55-9I5-view-Ywb-7c-HKv" nib but didn't get a UITableView.'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010ab4ff35 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010a43fbb7 objc_exception_throw + 45
    2   CoreFoundation                      0x000000010ab4fe6d +[NSException raise:format:] + 205
    3   UIKit                               0x000000010b21e415 -[UITableViewController loadView] + 249
    4   UIKit                               0x000000010b0617f9 -[UIViewController loadViewIfRequired] + 75
    5   UIKit                               0x000000010b061c8e -[UIViewController view] + 27
    6   UIKit                               0x000000010b099d3b -[UINavigationController preferredContentSize] + 149
    7   UIKit                               0x000000010b041ec2 -[UIPresentationController preferredContentSizeDidChangeForChildContentContainer:] + 101
    8   UIKit                               0x000000010b03fb0d __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 108
    9   UIKit                               0x000000010af5f331 _applyBlockToCFArrayCopiedToStack + 314
    10  UIKit                               0x000000010af5f1ab _afterCACommitHandler + 516
    11  CoreFoundation                      0x000000010aa84dc7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    12  CoreFoundation                      0x000000010aa84d20 __CFRunLoopDoObservers + 368
    13  CoreFoundation                      0x000000010aa7ab53 __CFRunLoopRun + 1123
    14  CoreFoundation                      0x000000010aa7a486 CFRunLoopRunSpecific + 470
    15  GraphicsServices                    0x000000010e11e9f0 GSEventRunModal + 161
    16  UIKit                               0x000000010af3c420 UIApplicationMain + 1282
    17  CoreData_Saha                       0x0000000109f0de73 main + 115
    18  libdyld.dylib                       0x000000010d0df145 start + 1
    19  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

1 个答案:

答案 0 :(得分:0)

" [UITableViewController loadView]加载" jgh-55-9I5-view-Ywb-7c-HKv" nib但没有得到UITableView。"

这就是说你的故事板中的某个地方有一个UITableViewController或它的子类,它的view属性连接到不是UITableView或子类的东西这一点。

检查故事板中的每个视图控制器,以确保其视图与适当的视图相关联。