控制台执行出现如下报错
Application windows are expected to have a root view controller at the end of application launch
解决办法
在AppDelegate.m中的
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
中输入
XXXController *controller = [[XXXViewController alloc]init];
[self.window setRootViewController:controller];
即可
时间: 2024-08-25 01:26:03