편집

다음을 통해 공유


UIView.AnimateKeyframes Method

Definition

Creates an animation action object that is to be used to set up keyframe-based animations for the current view.

[Foundation.Export("animateKeyframesWithDuration:delay:options:animations:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void AnimateKeyframes (double duration, double delay, UIKit.UIViewKeyframeAnimationOptions options, Action animations, UIKit.UICompletionHandler completion);
static member AnimateKeyframes : double * double * UIKit.UIViewKeyframeAnimationOptions * Action * UIKit.UICompletionHandler -> unit

Parameters

duration
Double

Duration in seconds for the animation.

delay
Double

Duration in seconds before starting the animation.

options
UIViewKeyframeAnimationOptions

Designates a mask of options that indicates how the developer wants to perform the animations.

animations
Action

An action object that contains the changes to be committed to the views.

completion
UICompletionHandler

An action object that is to be executed when the animation sequence ends.

Attributes

Remarks

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

Creates an animation action that is to be used to set up a keyframe-based animation.

Applies to