Skip to content

Instantly share code, notes, and snippets.

View wonderffee's full-sized avatar

wonderffee

View GitHub Profile
@wonderffee
wonderffee / gist:6255991
Last active December 21, 2015 05:19 — forked from bmeurer/gist:1026439
iOS启动画面的放大渐隐效果
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Put necessary initialization steps here...
// Add imageView overlay with fade out and zoom in animation
UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.window.frame];
imageView.image = [UIImage imageNamed:@"Default"]; // assuming your splash image is "Default.png" or "[email protected]"
[self.window addSubview:imageView];
[self.window bringSubviewToFront:imageView];
[UIView transitionWithView:self.window