Created
October 11, 2012 14:23
-
-
Save boboboa32/3872694 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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