解决This Class is not Key Value Co

2020-02-11  本文已影响0人  假装门口当前台

今天要在xcode创建自定义view,奈何选择继承view没法选择xib,就用viewcontroller创建,然后手动改成view

然后启动一直出现崩溃,发现报错
This Class is not Key Value Coding-Compliant for the view key

找了半天原来是xib默认把view引用给了vc,但是view已经不存在了,把view的引用去掉即可


CC0C7595C3352F08A3EE2C7EEB8CC775.jpg
上一篇 下一篇

猜你喜欢

热点阅读