【发布时间】:2017-06-15 09:19:28
【问题描述】:
我遇到了Hero 的问题,首先我尝试在我的项目中使用Hero,但我无法使其工作,然后你尝试使其与示例项目中的故事板一起工作,但是我得到这个错误。
Failed to set (heroID) user defined inspected property on (UIButton): [<UIButton 0x100f1a700> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key heroID.
我不知道该怎么办:
IsHeroEnabled = On
请帮帮我,我已经阅读了互联网上的所有内容,但找不到解决方案。
【问题讨论】:
-
检查 herobutton 的 IBoutlet 并更好地将其类设置为 UIButton
-
没有 herobutton 的 IBOutlet 并且按钮的类是 UIButton