今天要在xcode创建自定义view,奈何选择继承view没法选择xib,就用viewcontroller创建,然后手动改成view
然后启动一直出现崩溃,发现报错
This Class is not Key Value Coding-Compliant for the view key
找了半天原来是xib默认把view引用给了vc,但是view已经不存在了,把view的引用去掉即可
![](https://img.haomeiwen.com/i13022281/a654569414cdb27c.jpg)
今天要在xcode创建自定义view,奈何选择继承view没法选择xib,就用viewcontroller创建,然后手动改成view
然后启动一直出现崩溃,发现报错
This Class is not Key Value Coding-Compliant for the view key
找了半天原来是xib默认把view引用给了vc,但是view已经不存在了,把view的引用去掉即可
本文标题:解决This Class is not Key Value Co
本文链接:https://www.haomeiwen.com/subject/eblxfhtx.html
网友评论