this class is not key value codingcompliant for the key digitPressed 解决办法

今天突然遇到了一个这样的错误。Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ContentViewController 0x4528a0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key digitPressed

弄了半天,代码也没有错误。后来还是找到了。是因为。当前的这个视图。View有一些控件有多余的关联。

把它删除掉就行了。第一次遇到这个问题。真有点伤神。

原文地址:https://www.cnblogs.com/qingjoin/p/2659016.html