更改iPhone启动画面时间
发布时间:2020-12-14 19:57:25 所属栏目:百科 来源:网络整理
导读:参见英文答案 Making the launch image display longer xcode????????????????????????????????????8个 例如,如何让启动画面停留更长时间,持续5秒? 解决方法 您需要创建一个视图控制器来显示启动屏幕,如下所示. - (BOOL)application:(UIApplication *)appli
参见英文答案 >
Making the launch image display longer xcode????????????????????????????????????8个
例如,如何让启动画面停留更长时间,持续5秒? 解决方法
您需要创建一个视图控制器来显示启动屏幕,如下所示.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self generateRandomSplashScreen]; [self performSelector:@selector(removeSplashScreen) withObject:nil afterDelay:SPLASHSCREEN_DELAY]; [self otherViewControllerLoad]; // the other view controller [self.window makeKeyAndVisible]; return YES; } -(void) generateRandomSplashScreen { splashScreenViewController = [[SplashScreenController alloc] initWithNibName:@"SplashScreenController" bundle:[NSBundle mainBundle]]; [self.window addSubview:self.splashScreenViewController.view]; } -(void) removeSplashScreen { [splashScreenViewController.view removeFromSuperview]; self.window.rootViewController = self.tabBarController; [splashScreenViewController release]; } (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |