Skip to content

Instantly share code, notes, and snippets.

@darkseed
Created January 14, 2011 17:22
Show Gist options
  • Save darkseed/779915 to your computer and use it in GitHub Desktop.
Save darkseed/779915 to your computer and use it in GitHub Desktop.
Fadeout default.png
- (void)hideLoadingDefaultViewDidStop
{
    loadingDefaultView.hidden = YES;
}
 
- (void)viewDidAppear:(BOOL)animated
{
    if (!loadingDefaultView.hidden)
    {
        [UIView beginAnimations:@"Hide loading screen" context:nil];
        [UIView setAnimationDuration:fadeDuration];
        [UIView setAnimationDelegate:self];
        [UIView setAnimationDidStopSelector:@selector(hideLoadingDefaultViewDidStop)];
        loadingDefaultView.alpha = 0.0f;
        [UIView commitAnimations];
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment