Created
September 28, 2012 08:33
-
-
Save siqin/3798656 to your computer and use it in GitHub Desktop.
Fade In and Fade Out
This file contains hidden or 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
CATransform3D transform = CATransform3DMakeScale(0.001, 0.001, 1.0); | |
hintView.layer.transform = transform; | |
hintView.alpha = 0; | |
transform = CATransform3DMakeScale(1.0, 1.0, 1.0); | |
[UIView beginAnimations:nil context:nil]; | |
[UIView setAnimationDuration:0.5]; | |
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; | |
hintView.layer.transform = transform; | |
hintView.alpha = 1; | |
[UIView commitAnimations]; | |
CATransform3D transform = CATransform3DMakeScale(0.001, 0.001, 0.001); | |
[UIView beginAnimations:nil context:nil]; | |
[UIView setAnimationDelay:0.0]; | |
[UIView setAnimationDuration:.5]; | |
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; | |
hintView.layer.transform = transform; | |
hintView.alpha = 0; | |
[UIView commitAnimations]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment