一个BUG一上午没了,调好的心情就是可以吃饭去了XIb

TestAudioPlayer[254:707] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<TestAudioPlayerViewController 0x198620> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key w.'

*** Call stack at first throw:

并且xcode代码运行到UIApplicationDelegate的 [self.windowmakeKeyAndVisible];时停止,提示program received signal “SIGABRT”

这个问题的root cause是在xib中某个控件已经通过outlet连接到ViewController中的某个变量上了,后来变量删除了,但是这种连接关系没有删除,导致启动时找不到对应的key,抛出上述exception,XIB使用的时候一定注意连线啊少年、、、要么等待你的是一上午的BUG哥。

 

posted @ 2015-11-07 13:44  guySang  阅读(138)  评论(0编辑  收藏  举报