当我试图打开视图时,会收到此错误。
2011-03-30 18:03:46.703 i迪拜步骤516:207个*终止应用程序,原因:‘setValue:forUndefinedKey::该类不符合键值编码。’*第一次抛出时调用堆栈:(0 CoreFoundation
9 exceptionPreprocess + 185 1 libobjc.A.dylib
0x012005c2 objc_exception_throw + 47 2 CoreFoundation
0x0140bb21 -NSException raise + 17 3 Foundation
0x000476cf _NSSetUsingKeyValueSetter + 135 4 Foundation
0x0004763d -NSObject(NSKeyValueCoding) setValue:forKey:+ 285 5 UIKit
0x004c68d6 -UIRuntimeOutletConnection connect + 112 6 CoreFoundation
0x013822cf -NSArray makeObjectsPerformSelector:+ 239 7 UIKit
0x004c52ed -UINib实例化0x004c52ed:options:+ 1041 8 UIKit
0x004c7081 -NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:+ 168 9 UIKit
0x0037fa94 -UIViewController _loadViewFromNibNamed:bundle:+ 70 10 UIKit
0x0037d709 -UIViewController loadView + 120 11 UIKit
0x0037d5e3 -UIViewController视图+ 56 12 UIKit
0x0037f012 -UIViewController viewControllerForRotation + 63 13 UIKit
+ 90 14 UIKit 0x00614a97 -UIClientRotationContext _setRotatableClient:toOrientation:updateStatusBar:duration:force:+ 354 15 UIKit 0x002f6ba8 -UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:+ 954 16 UIKit 0x00576948 -UIWindowController transition:fromViewController:toViewController:target:didEndSelector:+ 1053 17 UIKit0x00381982 -UIViewController presentModalViewController:带转换:+ 3151 18 iDubstep 0x00007b34 -MainerViewController goRecord:+ 153 19 UIKit
0x002cfa6e -UIApplication sendAction:to:forEvent:+ 119 20 UIKit
0x0035e1b5 -UIControl sendAction:to:forEvent:+ 67 21 UIKit
0x00360647 -UIControl(内部) _sendActionsForEvents:withEvent:+ 527 22 UIKit
0x0035f438 -UIControl touchesBegan:withEvent:+ 277 23 UIKit
0x002f4025 -UIWindow _sendTouchesForEvent:+ 395 24 UIKit
0x002d537a -UIApplication sendEvent:+ 447 25 UIKit 0x002da732 _UIApplicationHandleEvent + 7576 26 GraphicsServices
0x01c22a36 PurpleEventCallback + 1550 27 CoreFoundation
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 52 28 CoreFoundation 0x0134d6f7 __CFRunLoopDoSource1 + 215 29 CoreFoundation
0x0134a983 __CFRunLoopRun + 979 30 CoreFoundation
0x0134a240 CFRunLoopRunSpecific +20831 CoreFoundation
0x0134a161 CFRunLoopRunInMode + 97 32 GraphicsServices
0x01c21268 GSEventRunModal + 217 33 GraphicsServices
0x01c2132d GSEventRun + 115 34 UIKit 0x002de42e UIApplicationMain + 1160 35 iDubstep
0x000028f8 main + 102 36 iDubstep
0x00002889启动+ 53 )在抛出'NSException'实例后调用终止
发布于 2011-03-30 17:17:03
这里急需密码..。
同时,第一行说明错误是什么:
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key timeimg.'只需搜索项目中的forKey:@"timeimg"即可。(也许你应该用计时或计时来代替这个时间。)
发布于 2011-03-30 17:17:24
我希望您在某个地方编写了timeing,您打算在其中编写timing。但是如果没有代码,就很难确定。
发布于 2011-03-30 17:57:10
看来你正在这里加载一个nib文件。您是否有可能在视图控制器的某个出入口的名称中纠正了拼写错误?如果您在将一个或多个对象连接到该出口后这样做,则nib文件可能仍然包含最初的拼写错误。查看您的视图控制器的nib中是否存在错误的连接。如果可以识别问题对象,请将其从任何插座断开并重新连接。
https://stackoverflow.com/questions/5489676
复制相似问题