Szerkesztés

Megosztás a következőn keresztül:


UIView.AnimateNotify Method

Definition

Overloads

AnimateNotify(Double, Double, UIViewAnimationOptions, Action, UICompletionHandler)

Animates the property changes that take place in the specified action and invokes a completion callback when the animation completes.

AnimateNotify(Double, Double, nfloat, nfloat, UIViewAnimationOptions, Action, UICompletionHandler)

Executes a view animation that uses a timing curve that corresponds to the activity of a physical spring.

AnimateNotify(Double, Action, UICompletionHandler)

Animates the property changes that take place in the specified action.

AnimateNotify(Double, Double, UIViewAnimationOptions, Action, UICompletionHandler)

Animates the property changes that take place in the specified action and invokes a completion callback when the animation completes.

[Foundation.Export("animateWithDuration:delay:options:animations:completion:")]
public static void AnimateNotify (double duration, double delay, UIKit.UIViewAnimationOptions options, Action animation, UIKit.UICompletionHandler completion);
static member AnimateNotify : double * double * UIKit.UIViewAnimationOptions * Action * UIKit.UICompletionHandler -> unit

Parameters

duration
Double

Duration in seconds for the animation.

delay
Double

Delay before the animation begins.

options
UIViewAnimationOptions

Animation options

animation
Action

Code containing the changes that you will apply to your view.

completion
UICompletionHandler

The method to invoke when the animation has completed.

This parameter can be null.

Attributes

Remarks

The use of this method is discouraged. Application developers should prefer to use the UIViewPropertyAnimator class to animate UIViews.

Applies to

AnimateNotify(Double, Double, nfloat, nfloat, UIViewAnimationOptions, Action, UICompletionHandler)

Executes a view animation that uses a timing curve that corresponds to the activity of a physical spring.

[Foundation.Export("animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void AnimateNotify (double duration, double delay, nfloat springWithDampingRatio, nfloat initialSpringVelocity, UIKit.UIViewAnimationOptions options, Action animations, UIKit.UICompletionHandler completion);
static member AnimateNotify : double * double * nfloat * nfloat * UIKit.UIViewAnimationOptions * Action * UIKit.UICompletionHandler -> unit

Parameters

duration
Double

Duration in seconds for the animation.

delay
Double

Delay before the animation begins.

springWithDampingRatio
nfloat

Damping ratio set for spring animation when it is approaching its quiescent state. Value between 0 and 1 representing the amount of damping to apply to the spring effect.

initialSpringVelocity
nfloat

Initial spring velocity prior to attachment. The initial velocity of the spring, in points per second.

options
UIViewAnimationOptions

Animation options.

animations
Action

Code containing the changes that you will apply to your view.

completion
UICompletionHandler

The method to invoke when the animation has completed.

This parameter can be null.

Attributes

Remarks

The use of this method is discouraged. Application developers should prefer to use the UIViewPropertyAnimator class to animate UIViews.

Applies to

AnimateNotify(Double, Action, UICompletionHandler)

Animates the property changes that take place in the specified action.

[Foundation.Export("animateWithDuration:animations:completion:")]
public static void AnimateNotify (double duration, Action animation, UIKit.UICompletionHandler completion);
static member AnimateNotify : double * Action * UIKit.UICompletionHandler -> unit

Parameters

duration
Double

Duration in seconds for the animation.

animation
Action

Code containing the changes that you will apply to your view.

completion
UICompletionHandler

The method to invoke when the animation has completed.

This parameter can be null.

Attributes

Remarks

The use of this method is discouraged. Application developers should prefer to use the UIViewPropertyAnimator class to animate UIViews.

Applies to