gpt4 book ai didi

ios - 设置 Root View 时的 "Application windows are expected to have a root view controller at the end of application launch"消息

转载 作者:可可西里 更新时间:2023-11-01 05:45:35 26 4
gpt4 key购买 nike

<分区>

我的 App Delegate 文件中有以下代码:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
MBFeedViewController *feedViewController = [[MBFeedViewController alloc] init];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[self.window setRootViewController:feedViewController];
[self.window makeKeyAndVisible];
return YES;
}

然后当我运行我的应用程序时,控制台输出消息:

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

这个我想不通。当我设置窗口的 RootViewController 时,FeedViewController 不是 nil

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com