MonoTouch.UIKit.UIView.Animate Method
Animates the property changes that take place in the specified action.

Syntax

[MonoTouch.Foundation.Export("animateWithDuration:animations:")]
[MonoTouch.ObjCRuntime.Since(4, 0)]
public static void Animate (double duration, [MonoTouch.ObjCRuntime.BlockProxy(typeof(MonoTouch.ObjCRuntime.Trampolines/NIDNSAction))] MonoTouch.Foundation.NSAction animation)

Parameters

duration
Duration in seconds for the animation.
animation
Code that contains the changes that you will apply to your view.

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 (3, () => { label.Alpha = 0; });
            

Related content

Requirements

Minimum iOS version: 4.0
Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0