我刚刚开发了一个应用程序,但在模拟器中运行时,调试器控制台显示:
The app delegate must implement the window property if it wants to use a main storyboard file.
我有一个应用委托(delegate)文件。该消息是什么意思,我怎样才能让我的应用正常运行?
最佳答案
确保您的 AppDelegate 类中有以下属性声明:
var window: UIWindow?
关于ios - 如果 app delegate 想快速使用主 Storyboard文件,它必须实现 window 属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29441682/