【发布时间】:2014-12-09 23:38:08
【问题描述】:
好的,我在这里遇到了一个重大错误。我认为当我使用助手编辑器将动作从我的 captureButton 链接到 captureButtonPressed 时,问题就出现了。但是我不小心选择了将其链接为 Outlet,然后我删除了 Outlet 并使用 Action 再次进行了操作。
这是错误:
2014-12-09 16:29:17.611 Penny[2593:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Penny.ViewController 0x156511600> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key captureButtonPressed.'
asdf
它是否可能仍在查看旧链接?有没有可以查看所有链接的地方?我注释掉我的 catureButtonPressed 操作,错误仍然存在。
谢谢
【问题讨论】:
标签: ios swift uibutton action nsunknownkeyexception