Storyboard:this class is not key value coding

今天写iOS程序时,突然报下面的错误。用storyboard构建页面,与vi ewController绑定控件的时候,手贱,多连了几次。

‘NSUnknownKeyException’, reason: ‘[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key name.’

解决办法: 1. 在 connection inspector 中, 删除这个 outlet 的关联; 2. 在 .swift 文件中, 找到声明的这个property, 删掉; 3. 在整个project 中,搜索这个 property, 待IBOutlet 重写声明后,替换之前的 property;

,希望你灰暗的心情在此刻明亮起来,去迎接美好的明天!

Storyboard:this class is not key value coding

相关文章:

你感兴趣的文章:

标签云: