Tuesday, September 21, 2010

How to fade out info button after some seconds ???

[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];

No comments:

Post a Comment