- duration
- Duration in seconds for the animation.
- animation
- Code containing the changes that you will apply to your view.
- completion
- Code that is invoked when the animation completes.
This uses The CurveEaseOut and TransitionNone flags for the animation.
C# Example
// Animates hiding the label by setting the alpha to zero over three seconds.
UIView.Animate (
duration: 3,
animation: () => { view.Alpha = 0; },
completion: () => { view.RemoveFromSuperview (); });
This method's completion parameter is of type MonoTouch.Foundation.NSAction, which does not receive a Boolean finished indicating whether the animation completed successfully. Application developers who rely on that value should instead use the UIView.AnimateNotify method.