Skip to content

Instantly share code, notes, and snippets.

@boboboa32
Created October 11, 2012 14:23
Show Gist options
  • Save boboboa32/3872694 to your computer and use it in GitHub Desktop.
Save boboboa32/3872694 to your computer and use it in GitHub Desktop.
- (IBAction)showHideView:(id)sender
{
// Fade out the view right away
[UIView animateWithDuration:1.0
delay: 0.0
options: UIViewAnimationOptionCurveEaseIn
animations:^{
thirdView.alpha = 0.0;
}
completion:^(BOOL finished){
// Wait one second and then fade in the view
[UIView animateWithDuration:1.0
delay: 1.0
options:UIViewAnimationOptionCurveEaseOut
animations:^{
thirdView.alpha = 1.0;
}
completion:nil];
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment