gpt4 book ai didi

objective-c - 是什么导致了这次崩溃?

转载 作者:行者123 更新时间:2023-12-03 12:22:13 25 4
gpt4 key购买 nike

在我的应用程序中,每次应用程序启动时都会显示 UIAlertView,如果我不单击“关闭”按钮,一切正常,但如果我单击“关闭”按钮,应用程序将在 3 秒后崩溃。

我从控制台获得了崩溃日志,如果有人知道它为什么崩溃,请告诉我

  2011-03-20 15:47:05.833 App[8080:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSCFString 0x6e04920> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key mystatsbutton.'
*** Call stack at first throw:
(
0 CoreFoundation 0x01a71be9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x01bc65c2 objc_exception_throw + 47
2 CoreFoundation 0x01a71b21 -[NSException raise] + 17
3 Foundation 0x001016cf _NSSetUsingKeyValueSetter + 135
4 Foundation 0x0010163d -[NSObject(NSKeyValueCoding) setValue:forKey:] + 285
5 UIKit 0x005808d6 -[UIRuntimeOutletConnection connect] + 112
6 CoreFoundation 0x019e82cf -[NSArray makeObjectsPerformSelector:] + 239
7 UIKit 0x0057f2ed -[UINib instantiateWithOwner:options:] + 1041
8 UIKit 0x00581081 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 168
9 UIKit 0x00439a94 -[UIViewController _loadViewFromNibNamed:bundle:] + 70
10 UIKit 0x00437709 -[UIViewController loadView] + 120
11 UIKit 0x004375e3 -[UIViewController view] + 56
12 App 0x000084e2 -[LoadupView endview] + 132
13 Foundation 0x0011f7a5 __NSFireTimer + 125
14 CoreFoundation 0x01a52fe3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
15 CoreFoundation 0x01a54594 __CFRunLoopDoTimer + 1220
16 CoreFoundation 0x019b0cc9 __CFRunLoopRun + 1817
17 CoreFoundation 0x019b0240 CFRunLoopRunSpecific + 208
18 CoreFoundation 0x019b0161 CFRunLoopRunInMode + 97
19 GraphicsServices 0x02349268 GSEventRunModal + 217
20 GraphicsServices 0x0234932d GSEventRun + 115
21 UIKit 0x0039842e UIApplicationMain + 1160
22 App 0x000022de main + 84
23 App 0x00002281 start + 53
)
terminate called after throwing an instance of 'NSException'

最佳答案

从错误消息中,您似乎正在从 Nib 加载 View Controller , Nib 试图将某些东西连接到名为 mystatsbutton 的 socket 。但是该类不包含具有该名称的 socket 。

关于objective-c - 是什么导致了这次崩溃?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5371451/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com