「Xcode常见错误提示」是「Swift学习笔记」(微信号:Swiftmemeda)的新栏目,总结给自己,以及需要的人。
错误现象: Xcode运行时报错:this class is not key value coding-compliant for the keyntroller for UIMainStoryboardFile.
原因分析:一个比较基础的错误,多发生在设置IBAction和IBOutlet时有多余或错误的连线。
解决方案:选中系统提示的view,在show the connections inspector检查控件的连接,将错误的删去重新连接即可。
![](https://img.haomeiwen.com/i78278/fdb5848e12ffd30f.jpg)
网友评论
[<UITextField 0x7f7f97043800> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key .
(null)
我移除了 相關的 UITextField 還是會出現的說...