码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2018-10-31 15:48:52      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:expected   hit   root   uiview   visible   cat   bsp   end   expec   

今天把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

标签:expected   hit   root   uiview   visible   cat   bsp   end   expec   

原文地址:https://www.cnblogs.com/sandyzhang/p/9882974.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!