gpt4 book ai didi

iphone - 如何更改首次加载 View

转载 作者:行者123 更新时间:2023-11-29 04:39:15 24 4
gpt4 key购买 nike

我在 didFinishLaunching 上获得了此代码,但我不知道如何自定义它以在打开应用程序时打开 menuViewController。

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:    (NSDictionary *)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.
self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease];


self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
// At the end of applicationDidFinishLaunching, right before
// the return YES
[[GCTurnBasedMatchHelper sharedInstance] authenticateLocalUser];
return YES;
}

希望有人能帮我

最佳答案

更改以下行

self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease];

self.viewController = [[[menuViewController alloc] initWithNibName:@"menuViewController" bundle:nil] autorelease];

关于iphone - 如何更改首次加载 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10637636/

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