简体   繁体   English

由于未捕获的异常“ NSInvalidArgumentException”而终止应用程序,

[英]Terminating app due to uncaught exception 'NSInvalidArgumentException',

i hav this error. 我有这个错误。 can anyone help me... 谁能帮我...

Call stack at first throw:
(
    0   CoreFoundation                      0x00dc25a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x00f16313 objc_exception_throw + 44
    2   CoreFoundation                      0x00dc40bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x00d33966 ___forwarding___ + 966
    4   CoreFoundation                      0x00d33522 _CF_forwarding_prep_0 + 50
    5   UIKit                               0x002b24fd -[UIApplication sendAction:to:from:forEvent:] + 119
    6   UIKit                               0x00342799 -[UIControl sendAction:to:forEvent:] + 67
    7   UIKit                               0x00344c2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
    8   UIKit                               0x003437d8 -[UIControl touchesEnded:withEvent:] + 458
    9   UIKit                               0x002d6ded -[UIWindow _sendTouchesForEvent:] + 567
    10  UIKit                               0x002b7c37 -[UIApplication sendEvent:] + 447
    11  UIKit                               0x002bcf2e _UIApplicationHandleEvent + 7576
    12  GraphicsServices                    0x0171a992 PurpleEventCallback + 1550
    13  CoreFoundation                      0x00da3944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
    14  CoreFoundation                      0x00d03cf7 __CFRunLoopDoSource1 + 215
    15  CoreFoundation                      0x00d00f83 __CFRunLoopRun + 979
    16  CoreFoundation                      0x00d00840 CFRunLoopRunSpecific + 208
    17  CoreFoundation                      0x00d00761 CFRunLoopRunInMode + 97
    18  GraphicsServices                    0x017191c4 GSEventRunModal + 217
    19  GraphicsServices                    0x01719289 GSEventRun + 115
    20  UIKit                               0x002c0c93 UIApplicationMain + 1160
    21  BasicNavigation                     0x00001ea0 main + 102
    22  BasicNavigation                     0x00001e31 start + 53
)
terminate called after throwing an instance of 'NSException'
Program received signal:  “SIGABRT”.
(gdb) 

When you are getting this error? 什么时候出现此错误?

NSInvalidArgumentException NSInvalidArgumentException

Name of an exception that occurs when you pass an invalid argument to a method, such as a nil pointer where a non-nil object is required. 将无效参数传递给方法时发生的异常的名称,例如需要非null对象的nil指针。

-[NSObject(NSObject) doesNotRecognizeSelector:] 

indicates that one of your objects does not recognize the selector method. 表示您的一个对象无法识别选择器方法。 You are probably calling a method using an object which does not perform the particular method. 您可能正在使用不执行特定方法的对象来调用方法。 Please post your code so that you can get the exact reason. 请发布您的代码,以便您获取确切的原因。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 由于未捕获的异常'NSInvalidArgumentException而终止应用程序 - Terminating app due to uncaught exception 'NSInvalidArgumentException 由于未捕获的异常“ NSInvalidArgumentException”而终止应用程序 - Terminating app due to uncaught exception 'NSInvalidArgumentException' (由于未捕获的异常'NSInvalidArgumentException而终止应用程序) - (Terminating app due to uncaught exception 'NSInvalidArgumentException) 由于未捕获的异常“ NSInvalidArgumentException”而终止应用程序 - Terminating app due to uncaught exception 'NSInvalidArgumentException' iOS应用程序异常-由于未捕获的异常'NSInvalidArgumentException'而终止应用程序 - iOS App Exception - Terminating app due to uncaught exception 'NSInvalidArgumentException' 由于未捕获的异常“ NSInvalidArgumentException”而终止应用程序,原因:“-[NSDecimalNumber objectAtIndex:] - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSDecimalNumber objectAtIndex:] iPhone上的stringByTrimmingCharactersInSet错误“由于未捕获的异常'NSInvalidArgumentException'而终止应用程序” - “Terminating app due to uncaught exception 'NSInvalidArgumentException'” error with stringByTrimmingCharactersInSet on iPhone 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[__NSCFString isDescendantOfView:]: - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString isDescendantOfView:]: 在iPhone编程中由于未捕获的异常'NSInvalidArgumentException'终止了应用程序 - Terminating app due to uncaught exception 'NSInvalidArgumentException', in iPhone programming 由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:'-[QBDDXMLElement attributeFloatValueForName:withDefaultValue:]: - Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[QBDDXMLElement attributeFloatValueForName:withDefaultValue:]:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM