iPhone无法理解异常

编程入门 行业动态 更新时间:2024-10-25 01:37:33
本文介绍了iPhone无法理解异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嘿,谁能帮我解决一下,我之前在代码和链接中包含的异常类型是:应用程序在模拟器上运行,但不在iPhone上的设备上运行

Hey can anyone help me out that what type of exception is this i had earlier a code and link is as: Application run on simulator but not on device in iphone

可以在座的任何人都可以分辨出异常类型是什么?有内存泄漏吗?

can anybody here who can tell that what type of exception is in it? is there any memory leak?

以下是日志:

2013-12-27 17:53:26.814 Skirr[1346:a0b] Application windows are expected to have a root view controller at the end of application launch 2013-12-27 17:53:27.995 Skirr[1346:a0b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]' *** First throw call stack: ( 0 CoreFoundation 0x032745e4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x021b88b6 objc_exception_throw + 44 2 CoreFoundation 0x03228316 -[__NSPlaceholderArray initWithObjects:count:] + 390 3 CoreFoundation 0x0324bce9 +[NSArray arrayWithObject:] + 73 4 Skirr 0x000093bd -[SlideViewController viewDidLoad] + 1597 5 UIKit 0x00e2d318 -[UIViewController loadViewIfRequired] + 696 6 UIKit 0x00e2d5b4 -[UIViewController view] + 35 7 UIKit 0x00e473e2 -[UINavigationController _startCustomTransition:] + 778 8 UIKit 0x00e540c7 -[UINavigationController _startDeferredTransitionIfNeeded:] + 688 9 UIKit 0x00e54cb9 -[UINavigationController __viewWillLayoutSubviews] + 57 10 UIKit 0x00f8e181 -[UILayoutContainerView layoutSubviews] + 213 11 UIKit 0x00d84267 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355 12 libobjc.A.dylib 0x021ca81f -[NSObject performSelector:withObject:] + 70 13 QuartzCore 0x005622ea -[CALayer layoutSublayers] + 148 14 QuartzCore 0x005560d4 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380 15 QuartzCore 0x00555f40 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26 16 QuartzCore 0x004bdae6 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 294 17 QuartzCore 0x004bee71 _ZN2CA11Transaction6commitEv + 393 18 QuartzCore 0x004bf544 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92 19 CoreFoundation 0x0323c4ce __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30 20 CoreFoundation 0x0323c41f __CFRunLoopDoObservers + 399 21 CoreFoundation 0x0321a344 __CFRunLoopRun + 1076 22 CoreFoundation 0x03219ac3 CFRunLoopRunSpecific + 467 23 CoreFoundation 0x032198db CFRunLoopRunInMode + 123 24 GraphicsServices 0x034ce9e2 GSEventRunModal + 192 25 GraphicsServices 0x034ce809 GSEventRun + 104 26 UIKit 0x00d19d3b UIApplicationMain + 1225 27 Skirr 0x000055a2 main + 130 28 libdyld.dylib 0x06896725 start + 0 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

推荐答案

已查看此

have look at this link from

的-a-breakpoint-to-objc-exception-throw>链接试图从对象中插入零对象[ 0]

attempt to insert nil object from objects[0]

您正在插入或处理nil个对象,您可以从上面的链接获得该行的引用

you are inserting or handling nil object you can get that line refer given above link

更多推荐

iPhone无法理解异常

本文发布于:2023-07-27 14:05:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1222761.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:异常   iPhone

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!