his class is not key value codingcompliant for the key

his class is not key value codingcompliant for the key,第1张

this class is not key value coding-compliant for the key

一般此问题 都是由interface build与代码中IBOutlet的连接所引起的。

可能是在代码中对iboutlet的名称进行了修改,导致interface build中的连接实效。

如果在该viewcontroller连接的xib文件中没发现错误,

那就很可能是mainWindow.xib文件中存在问题,

本人遇到的问题是在mainWindow.xib的tabbarcontroller的某个tab的viewcontroller设置了loadfrom"**.xib",

但忘了将其class设为对应的viewcontroller类了。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/2083166.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-07-22
下一篇 2022-07-22

发表评论

登录后才能评论

评论列表(0条)

保存