[button setAlpha: 1.0f];
[UIView beginAnimations: nil context:NULL];
// time delay in seconds to start
[UIView setAnimationDelay:2.0f];
// time in seconds for the fading, 0.25sec is the default apple time for small animations
[UIView setAnimationDuration:0.25f];
[UIView setAnimationBeginsFromCurrentState: YES];
[button setAlpha: 0.0f];
[UIView commitAnimations];
[UIView beginAnimations: nil context:NULL];
// time delay in seconds to start
[UIView setAnimationDelay:2.0f];
// time in seconds for the fading, 0.25sec is the default apple time for small animations
[UIView setAnimationDuration:0.25f];
[UIView setAnimationBeginsFromCurrentState: YES];
[button setAlpha: 0.0f];
[UIView commitAnimations];
No comments:
Post a Comment