【问题标题】:Failed to set (heroID) user defined inspected property无法设置(heroID)用户定义的检查属性
【发布时间】: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

HeroID 是正确的。

请帮帮我,我已经阅读了互联网上的所有内容,但找不到解决方案。

【问题讨论】:

  • 检查 herobutton 的 IBoutlet 并更好地将其类设置为 UIButton
  • 没有 herobutton 的 IBOutlet 并且按钮的类是 UIButton

标签: ios swift


【解决方案1】:

框架不在Linked Frameworks and Libraries

通常当我将框架放入 podfile 并安装 pod 时,它会自动导入到此列表中。

【讨论】:

    猜你喜欢
    • 2020-11-02
    • 1970-01-01
    • 2014-12-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-11
    • 1970-01-01
    相关资源
    最近更新 更多