如何修复崩溃“致命异常:NSInvalidArgumentException”

时间:2019-09-09 06:25:07

标签: ios objective-c exception

我正要崩溃。没有准确的代码告诉我哪一行崩溃了。

我在我的应用中使用了Webview。但我不确定为什么会崩溃。

0   CoreFoundation  __exceptionPreprocess
1   libobjc.A.dylib objc_exception_throw
2   CoreFoundation  _CFArgv
3       CoreFoundation  -[__NSPlaceholderSet initWithObjects:count:]
4   CoreFoundation  -[__NSSetM copyWithZone:]
5   UIKitCore   -[UIView _dispatchTintColorVisitorWithReasons:]
6   UIKitCore   -[UIView setTintAdjustmentMode:]
7   UIKitCore   -[_UIButtonBarButtonVisualProviderIOS updateButton:forEnabledState:]
8   UIKitCore   -[_UIButtonBarButton setEnabled:]
9   UIKitCore   -[UIPrintPanelTableViewController setShowContactingPrinter:]
10  libdispatch.dylib   _dispatch_call_block_and_release
11  libdispatch.dylib   _dispatch_client_callout
12  libdispatch.dylib   _dispatch_main_queue_callback_4CF$VARIANT$mp
13  CoreFoundation  __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
14  CoreFoundation  
__CFRunLoopRun
15  CoreFoundation  CFRunLoopRunSpecific
16  GraphicsServices    GSEventRunModal
17      UIKitCore   UIApplicationMain
18  ChopeDashboard  main.m line 14 main + 14
19  libdyld.dylib   start

是否有些人遇到相同的问题,以及如何解决?

0 个答案:

没有答案