2015-04-14 23:35:17.143 Yellow Ninja 2.0 [12492:594324] - [Yellow_Ninja_2_0.ACWallGenerator generatewall]:无法识别的选择器发送到实例0x7faf38fb7ce0 2015-04-14 23:35:17.146 Yellow Ninja 2.0 [12492:594324] *由于未被捕获而终止应用程序 异常'NSInvalidArgumentException',原因: ' - [Yellow_Ninja_2_0.ACWallGenerator generatewall]:无法识别 选择器发送到实例0x7faf38fb7ce0' * 第一次抛出调用堆栈:(0 CoreFoundation 0x000000010fc77f35 exceptionPreprocess + 165 1 libobjc.A.dylib
类型的未捕获异常
0x0000000111bb4bb7 objc_exception_throw + 45 2 CoreFoundation
0x000000010fc7f04d - [NSObject(NSObject)doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x000000010fbd727c ___转发_ + 988 4 CoreFoundation 0x000000010fbd6e18 _CF_forwarding_prep_0 + 120 5基础
0x00000001102ef2b4 NSFireTimer + 83 6 CoreFoundation
0x000000010fbdff64 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 20 7 CoreFoundation 0x000000010fbdfb25 __CFRunLoopDoTimer + 1045 8 CoreFoundation 0x000000010fba2e5d __CFRunLoopRun + 1901 9 CoreFoundation
0x000000010fba2486 CFRunLoopRunSpecific + 470 10图形服务
0x00000001170249f0 GSEventRunModal + 161 11 UIKit
0x00000001108fc420 UIApplicationMain + 1282 12黄色忍者2.0
0x000000010fa7a5be top_level_code + 78 13黄色忍者2.0
0x000000010fa7a5fa main + 42 14 libdyld.dylib
0x00000001123a0145 start + 1 15 ??? 0x0000000000000001 0x0 + 1)libc ++ abi.dylib:终止于 NSException(lldb)
这是我尝试运行应用时出现的错误消息。有什么建议吗?它说“InvalidArgumentException”???谢谢!
答案 0 :(得分:0)
您已设置计时器以在generatewall
触发时调用它。但要么你没有generatewall
方法 - 例如,如果它需要一个参数,那么它被称为generatewall:
,带冒号 - 或者你忽略了将该方法暴露给Objective-C。