Terminating app due to uncaught exception 'NSUnknownKeyException'

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<OtherViewController 0x712ab30> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key v.'

*** First throw call stack:

(0x1c91012 0x10cee7e 0x1d19fb1 0xb7ae41 0xafc5f8 0xafc0e7 0xb26b58 0x230019 0x10e2663 0x1c8c45a 0x22eb1c 0xf37e7 0xf3dc8 0xf3ff8 0xf4232 0x433d5 0x4376f 0x43905 0x4c917 0x297c 0x10157 0x10747 0x1194b 0x22cb5 0x23beb 0x15698 0x1becdf9 0x1becad0 0x1c06bf5 0x1c06962 0x1c37bb6 0x1c36f44 0x1c36e1b 0x1117a 0x12ffc 0x2712 0x2645)

libc++abi.dylib: terminate called throwing an exception

(lldb) 

xcode代码运行到UIApplicationDelegate的 [self.windowmakeKeyAndVisible];时停止
xib中outlet连接到ViewController中的某个变量上了,后来变量删除了,但是这种连接关系没有删除,导致启动时找不到对应的key,抛出上述exception
阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

Terminating app due to uncaught exception 'NSUnknownKeyException'

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭