你好,歡迎來到IOS教程網

 Ios教程網 >> IOS編程開發 >> IOS開發綜合 >> IOS應用啟動時漸變等待

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

  1. 上一頁:
  2. 下一頁:
蘋果刷機越獄教程| IOS教程問題解答| IOS技巧綜合| IOS7技巧| IOS8教程
Copyright © Ios教程網 All Rights Reserved