Skip to content

Instantly share code, notes, and snippets.

@quamen
Created June 1, 2009 04:25
Show Gist options
  • Save quamen/121228 to your computer and use it in GitHub Desktop.
Save quamen/121228 to your computer and use it in GitHub Desktop.
splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, 320, 480)];
splashView.image = [UIImage imageNamed:@"Default.png"];
[window addSubview:splashView];
[window bringSubviewToFront:splashView];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:window cache:YES];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(startupAnimationDone:finished:context:)];
splashView.alpha = 0.0;
splashView.frame = CGRectMake(-60, -60, 440, 600);
[UIView commitAnimations];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment