Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序在启动时崩溃并出现以下错误:
由于未捕获的异常“NSUnknownKeyException”而终止应用程序,原因:“[setValue:forUndefinedKey:]:此类不符合键 storyboardName 的键值编码。”
这通常发生在您之前IBOutlet从情节提要场景与其对应的连接viewController并且在某些时候您从场景中删除了出口或viewController没有删除连接时。因此错误。
IBOutlet
viewController
重新连接或完全删除连接(在代码和情节提要中)