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;
}

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。