在SceneDelegate.m中初始化UIWindow
- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions {
self.window.frame = [UIScreen mainScreen].bounds;
self.window.rootViewController = [[firstViewController alloc] init];
[self.window makeKeyAndVisible];
}
之后把info中的Main storyboard file base name的main删除掉即可