*** 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对应的控制器类

上一篇:HttpClient封装工具类


下一篇:【CodeVS】 p1225 八数码难题