码迷,mamicode.com
首页 > 移动开发 > 详细

IOS应用启动时渐变等待

时间:2014-09-12 17:12:03      阅读:235      评论:0      收藏:0      [点我收藏+]

标签:color   io   os   ar   for   sp   cti   log   on   

- (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应用启动时渐变等待

标签:color   io   os   ar   for   sp   cti   log   on   

原文地址:http://blog.csdn.net/huang2009303513/article/details/39231679

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!