App crash 报错 'NSUnknownKeyException'
Posted ArgenBarbie
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了App crash 报错 'NSUnknownKeyException'相关的知识,希望对你有一定的参考价值。
报错:
*** Terminating app due to uncaught exception , reason: ‘[<NSObject 0x6e36ae0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key XXX.‘
原因:
xib控件与swift变量绑定有问题。每个变量在File‘s Owner和view中都绑定了,绑定了两次。
解决方法:
在xib的File‘s Owner中去掉控件和变量的绑定。
以上是关于App crash 报错 'NSUnknownKeyException'的主要内容,如果未能解决你的问题,请参考以下文章
Node报错处理:[nodemon] app crashed - waiting for file changes before starting...
mysql报错:Table 'ta_history' is marked as crashed and should be repa
mysql 报错'./ivr/T_CDR' is marked as crashed and should be repaired when doing LOCK TABLES(示例代