- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 

    self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; 

    // Override point for customization after application launch. 

    self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease]; 

    self.window.rootViewController = self.viewController; 

    [self.window makeKeyAndVisible]; 

     

    UIImageView *splashScreen = [[[UIImageView alloc] initWithFrame:self.window.bounds] autorelease]; 

    splashScreen.p_w_picpath = [UIImage p_w_picpathNamed:@"Default"]; 

    [self.window addSubview:splashScreen];  www.2cto.com

     

    [UIView animateWithDuration:1.0 animations:^{ 

        CATransform3D transform = CATransform3DMakeScale(1.5, 1.5, 1.0); 

        splashScreen.layer.transform = transform; 

        splashScreen.alpha = 0.0; 

    } completion:^(BOOL finished) { 

        [splashScreen removeFromSuperview]; 

    }]; 

     

    return YES; 

}