首页 > 代码库 > IOS应用启动时渐变等待
IOS应用启动时渐变等待
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; [UIApplication sharedApplication].statusBarHidden = YES; UIImageView *splashScreen = [[UIImageView alloc] initWithFrame:self.window.bounds]; splashScreen.image = [UIImage imageNamed:@"程序进入图.png"]; [self.window addSubview:splashScreen]; [UIView animateWithDuration:5.0 animations:^{ CATransform3D transform = CATransform3DMakeScale(0.5, 0.5, 1.0); splashScreen.layer.transform = transform; splashScreen.alpha = 0.8; MyLog(@"111"); } completion:^(BOOL finished) { [splashScreen removeFromSuperview]; MyLog(@"222"); self.window.rootViewController = [[LoginViewController alloc]init]; self.window.backgroundColor = [UIColor whiteColor]; }]; _netRequest = [[NetRequest alloc] init]; [self.window makeKeyAndVisible]; return YES; }
IOS应用启动时渐变等待
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。