MonoTouch.UIKit.UIView.Animate Method
Animates the property changes that take place in the specified action and invokes a completion callback when the animation completes.

Syntax

public static void Animate (double duration, MonoTouch.Foundation.NSAction animation, MonoTouch.Foundation.NSAction completion)

See Also

UIView.AnimateNotify

Parameters

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.

Remarks

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.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0