iphone – 这个类不是密钥值编码符合密钥authView
发布时间:2020-12-14 20:03:48 所属栏目:百科 来源:网络整理
导读:参见英文答案 What does this mean? “’NSUnknownKeyException’,reason: … this class is not key value coding-compliant for the key X”????????????????????????????????????61 当我在模拟器上运行我的应用程序运行良好,当我尝试与设备不工作,我得到
参见英文答案 >
What does this mean? “’NSUnknownKeyException’,reason: … this class is not key value coding-compliant for the key X”????????????????????????????????????61
当我在模拟器上运行我的应用程序运行良好,当我尝试与设备不工作,我得到这些错误: 注意:我的代码中没有找到任何类的authView类 2011-02-24 12:04:14.472 TestP[473:307] *** Terminating app due to uncaught exception 'NSUnknownKeyException',reason: '[<TestP 0x19d2b0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key authView.' *** Call stack at first throw: ( 0 CoreFoundation 0x33ac0987 __exceptionPreprocess + 114 1 libobjc.A.dylib 0x3347b49d objc_exception_throw + 24 2 CoreFoundation 0x33ac0705 -[NSException dealloc] + 0 3 Foundation 0x3367db4f -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 182 4 Foundation 0x3367d03b _NSSetUsingKeyValueSetter + 90 5 Foundation 0x3367eda3 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 194 6 Foundation 0x33630b17 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 130 7 UIKit 0x3224c60f -[UIRuntimeOutletConnection connect] + 66 8 CoreFoundation 0x33a63fc7 -[NSObject(NSObject) performSelector:] + 18 9 CoreFoundation 0x33a6cd51 -[NSArray makeObjectsPerformSelector:] + 388 10 UIKit 0x3224b577 -[UINib instantiateWithOwner:options:] + 586 11 UIKit 0x3224cb39 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 92 12 UIKit 0x3209e871 -[UIApplication _loadMainNibFile] + 96 13 UIKit 0x3209a1fd -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 180 14 UIKit 0x3206648b -[UIApplication handleEvent:withNewEvent:] + 1114 15 UIKit 0x32065ec9 -[UIApplication sendEvent:] + 44 16 UIKit 0x32065907 _UIApplicationHandleEvent + 5090 17 GraphicsServices 0x33b0ef03 PurpleEventCallback + 666 18 CoreFoundation 0x33a556ff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26 19 CoreFoundation 0x33a556c3 __CFRunLoopDoSource1 + 166 20 CoreFoundation 0x33a47f7d __CFRunLoopRun + 520 21 CoreFoundation 0x33a47c87 CFRunLoopRunSpecific + 230 22 CoreFoundation 0x33a47b8f CFRunLoopRunInMode + 58 23 UIKit 0x32099309 -[UIApplication _run] + 380 24 UIKit 0x32096e93 UIApplicationMain + 670 25 TestP 0x00002213 main + 98 26 TestP 0x000021ac start + 40 ) terminate called after throwing an instance of 'NSException' 解决方法
你的文件的所有者可能已经在你的xibs中搞砸了.这个异常在nib unarchiving中被抛出(正如在backtrace中的[UINib …]所证明的那样).它尝试连接您定义的IBOutlets.
您的一个视图被设置为文件所有者的authView.但是,如果是时候取消归档笔尖,则所有者不具有authView属性,因此取消归档失败. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |