- -(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions
- {
- self.window=[[[UIWindowalloc]initWithFrame:[[UIScreenmainScreen]bounds]]autorelease];
- //Overridepointforcustomizationafterapplicationlaunch.
- self.viewController=[[[ViewControlleralloc]initWithNibName:@"ViewController"bundle:nil]autorelease];
- self.window.rootViewController=self.viewController;
- [self.windowmakeKeyAndVisible];
- UIImageView*splashScreen=[[[UIImageViewalloc]initWithFrame:self.window.bounds]autorelease];
- splashScreen.image=[UIImageimageNamed:@"Default"];
- [self.windowaddSubview:splashScreen];
- [NSThread sleepForTimeInterval:10.0];
- [UIViewanimateWithDuration:1.0animations:^{
- CATransform3Dtransform=CATransform3DMakeScale(1.5,1.5,1.0);
- splashScreen.layer.transform=transform;
- splashScreen.alpha=0.0;
- }completion:^(BOOLfinished){
- [splashScreenremoveFromSuperview];
- }];
- returnYES;
- }
- -(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions
- {
- self.window=[[[UIWindowalloc]initWithFrame:[[UIScreenmainScreen]bounds]]autorelease];
- //Overridepointforcustomizationafterapplicationlaunch.
- self.viewController=[[[ViewControlleralloc]initWithNibName:@"ViewController"bundle:nil]autorelease];
- self.window.rootViewController=self.viewController;
- [self.windowmakeKeyAndVisible];
- UIImageView*splashScreen=[[[UIImageViewalloc]initWithFrame:self.window.bounds]autorelease];
- splashScreen.image=[UIImageimageNamed:@"Default"];
- [self.windowaddSubview:splashScreen];
- [NSThread sleepForTimeInterval:10.0];
- [UIViewanimateWithDuration:1.0animations:^{
- CATransform3Dtransform=CATransform3DMakeScale(1.5,1.5,1.0);
- splashScreen.layer.transform=transform;
- splashScreen.alpha=0.0;
- }completion:^(BOOLfinished){
- [splashScreenremoveFromSuperview];
- }];
- returnYES;
- }