标签:
"height"是和stroyboard里面某个控件连接的outlet,这个height已经被删或者改名了,就会出现下面的错误??
2015-06-14 01:44:29.560 LoveFinder[2452:715221] *** Terminating app due to uncaught exception ‘NSUnknownKeyException‘, reason: ‘[<LoveFinder.ViewController 0x7f858349e370> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key height.‘
*** First throw call stack:
(
0 CoreFoundation 0x00000001074f8c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000109063bb7 objc_exception_throw + 45
2 CoreFoundation 0x00000001074f88a9 -[NSException raise] + 9
3 Foundation 0x0000000107916b53 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 259
4 CoreFoundation 0x0000000107440d50 -[NSArray makeObjectsPerformSelector:] + 224
5 UIKit 0x000000010806f52b -[UINib instantiateWithOwner:options:] + 1506
6 UIKit 0x0000000107ec7718 -[UIViewController _loadViewFromNibNamed:bundle:] + 242
7 UIKit 0x0000000107ec7d08 -[UIViewController loadView] + 109
8 UIKit 0x0000000107ec7f79 -[UIViewController loadViewIfRequired] + 75
9 UIKit 0x0000000107ec840e -[UIViewController view] + 27
10 UIKit 0x0000000107de32c9 -[UIWindow addRootViewControllerViewIfPossible] + 58
11 UIKit 0x0000000107de368f -[UIWindow _setHidden:forced:] + 247
12 UIKit 0x0000000107defe21 -[UIWindow makeKeyAndVisible] + 42
13 UIKit 0x0000000107d93457 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2732
14 UIKit 0x0000000107d961de -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349
15 UIKit 0x0000000107d950d5 -[UIApplication workspaceDidEndTransaction:] + 179
16 FrontBoardServices 0x000000010ab735e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
17 CoreFoundation 0x000000010742c41c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
18 CoreFoundation 0x0000000107422165 __CFRunLoopDoBlocks + 341
19 CoreFoundation 0x0000000107421f25 __CFRunLoopRun + 2389
20 CoreFoundation 0x0000000107421366 CFRunLoopRunSpecific + 470
21 UIKit 0x0000000107d94b42 -[UIApplication _run] + 413
22 UIKit 0x0000000107d97900 UIApplicationMain + 1282
23 LoveFinder 0x00000001073050b7 main + 135
24 libdyld.dylib 0x00000001097bb145 start + 1
25 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
解决办法:把连接删除
打开storyboard文件,找到对应的控件,按住control 点击空间 弹出Horizontal Slider面板,找到对应属性删除即可
this class is not key value coding-compliant for the key ***
标签:
原文地址:http://www.cnblogs.com/Sunlimi/p/4575330.html