Application windows are expected to have a root view controller at the end of application launch(示例代

一年好景君须记,最是橙黄橘绿时。这篇文章主要讲述Application windows are expected to have a root view controller at the end of application launch(示例代相关的知识,希望能为你提供帮助。
【Application windows are expected to have a root view controller at the end of application launch(示例代】今天把Xcode升级了,模拟器 用的12.1的系统,运行时发现项目总是崩溃,采用9.3系统的测试机发现错误日志如下:
Application windows are expected to have a root view controller at the end of application launch

Application windows are expected to have a root view controller at the end of application launch(示例代

文章图片

解决办法如下:
self.window = [[UIWindow alloc]initWithFrame:SCREEN_RECT]; self.window.backgroundColor = [UIColor whiteColor]; self.window.rootViewController = [[UIViewController alloc]init]; [self.window makeKeyAndVisible];

 

    推荐阅读