首页 > 代码库 > *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ViewController > setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ViewController > setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
*** Terminating app due to uncaught exception ‘NSUnknownKeyException‘, reason: ‘[ViewController > setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key backBtn.‘
第一种情况:xib文件属性输出口连接错误,IBout多连或者忘关输入口
第二种情况:引入第三方的SDK会出现错误,导入的bundle文件的nib文件出现问题,需要重新导入bundle资源文件 若公用SDK中的bundle文件里面的nib文件需要进行放在不同的路径进行调用即可,便于找到nib对应的控制器类
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ViewController > setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。