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

Posted 渣渣你好

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

解决办法如下:

self.window = [[UIWindow alloc]initWithFrame:SCREEN_RECT];
self.window.backgroundColor = [UIColor whiteColor];
self.window.rootViewController = [[UIViewController alloc]init];
[self.window makeKeyAndVisible];

 

以上是关于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(示例代

Xcode7.2.1报错:Application windows are expected to have a root view controller at the end of applicati

Windows Forms Application Creation and Initialization

Manage Metadata Service Error: There are no addresses available for this application

异常:This application has no explicit mapping for /error, so you are seeing this as a fallback.

1. SpringBoot启动后,报异常:This application has no explicit mapping for /error, so you are seeing this as