CGSize viewSize = self.window.bounds.size; NSString *launchImage = nil; NSDictionary *infoPlist = [[NSBundle mainBundle] infoDictionary]; NSString *icon = [[infoPlist valueForKeyPath:@"CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles"]lastObject]; NSLog(@"uuuuuuuu = %@", icon); CGSize imageSize = CGSizeFromString(icon); if (CGSizeEqualToSize(imageSize, viewSize)) { launchImage = icon; } UIImageView *launchView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:icon]]; launchView.frame = self.window.bounds; // launchView.contentMode = UIViewContentModeScaleAspectFill; [self.window addSubview:launchView]; [UIView animateWithDuration:2.0f delay:0.0f options:UIViewAnimationOptionBeginFromCurrentState animations:^{ launchView.alpha = 0.0f; launchView.layer.transform = CATransform3DScale(CATransform3DIdentity, 1.2, 1.2, 1); NSLog(@"1111111111111"); } completion:^(BOOL finished) { NSLog(@"2222222222222"); [launchView removeFromSuperview]; }];