【发布时间】:2017-09-17 17:40:14
【问题描述】:
我不断遇到 SIGABRT 错误消息
"2017-04-20 17:37:54.872 SepsisHub[3670:1670129] Unknown class _TtC10Sepsis_Hub14ViewController in Interface Builder file.
2017-04-20 17:38:54.903 SepsisHub[3670:1670129] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7fcb8ae03240> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key FirstHour.'"
但是,我在情节提要或 .swift 文件中找不到缺少的连接。构建时没有错误消息,并且似乎由于某种原因程序无法找到 IBOutlet,我不明白为什么考虑到我已将它们全部删除并在 swift 文件和情节提要连接器中多次重新连接而没有改变。
感谢您的帮助。如果需要,将提供更多屏幕截图。
【问题讨论】:
-
在 xib/storyboard 中,右键单击您的
Files Owner/ViewController以查看网点列表。检查您班级中不存在的任何插座。