• 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];
  • 相关阅读:
    学习进度14
    学习进度13
    学习进度12
    2020.12.01 表单元素
    2020.12.02 表单属性
    2020.12.04
    2020.12.06
    2020.12.07
    2020.12.08 URL
    2020.12.09
  • 原文地址:https://www.cnblogs.com/sandyzhang/p/9882974.html
Copyright © 2020-2023  润新知