UIView.Animate メソッド

定義

オーバーロード

Animate(Double, Action)

指定したアクションで行われるプロパティの変更をアニメーション化します。

Animate(Double, Action, Action)

指定したアクションで行われるプロパティの変更をアニメーション化し、アニメーションの完了時に完了コールバックを呼び出します。

Animate(Double, Double, UIViewAnimationOptions, Action, Action)

期間、遅延、オプション、および完了ハンドラーを指定して、1 つ以上のビューに対するアニメーションの変更を呼び出します。

Animate(Double, Action)

指定したアクションで行われるプロパティの変更をアニメーション化します。

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

パラメーター

duration
Double

アニメーションの継続時間 (秒)。

animation
Action

ビューに適用する変更を含むコード。

属性

注釈

このメソッドの使用はお勧めしません。 アプリケーション開発者は、 クラスを使用 UIViewPropertyAnimator して UIView をアニメーション化する必要があります。

これにより、アニメーションに CurveEaseOut フラグと TransitionNone フラグが使用されます。

// Animates hiding the label by setting the alpha to zero over three seconds.
UIView.Animate (3, () => { label.Alpha = 0; });

適用対象

Animate(Double, Action, Action)

指定したアクションで行われるプロパティの変更をアニメーション化し、アニメーションの完了時に完了コールバックを呼び出します。

[Foundation.Advice("Use the *Notify method that has 'UICompletionHandler completion' parameter, the 'bool' will tell you if the operation finished.")]
public static void Animate (double duration, Action animation, Action completion);
static member Animate : double * Action * Action -> unit

パラメーター

duration
Double

アニメーションの継続時間 (秒)。

animation
Action

ビューに適用する変更を含むコード。

completion
Action

アニメーションの完了時に呼び出されるコード。

属性

注釈

このメソッドの使用はお勧めしません。 アプリケーション開発者は、 クラスを使用 UIViewPropertyAnimator して UIView をアニメーション化する必要があります。

これにより、アニメーションに CurveEaseOut フラグと TransitionNone フラグが使用されます。

// Animates hiding the label by setting the alpha to zero over three seconds.
UIView.Animate (3, () => { label.Alpha = 0; });

適用対象

Animate(Double, Double, UIViewAnimationOptions, Action, Action)

期間、遅延、オプション、および完了ハンドラーを指定して、1 つ以上のビューに対するアニメーションの変更を呼び出します。

[Foundation.Advice("Use the *Notify method that has 'UICompletionHandler completion' parameter, the 'bool' will tell you if the operation finished.")]
public static void Animate (double duration, double delay, UIKit.UIViewAnimationOptions options, Action animation, Action completion);
static member Animate : double * double * UIKit.UIViewAnimationOptions * Action * Action -> unit

パラメーター

duration
Double

アニメーションの継続時間 (秒)。

delay
Double

アニメーションが開始されるまでの遅延。

options
UIViewAnimationOptions

アニメーション オプション

animation
Action

ビューに適用する変更を含むコード。

completion
Action

アニメーションの完了時に呼び出されるコード。

属性

注釈

このメソッドの使用はお勧めしません。 アプリケーション開発者は、 クラスを使用 UIViewPropertyAnimator して UIView をアニメーション化する必要があります。

このメソッドは、このビューで実行される一連のアニメーションを開始します。 animations パラメーターに示されているアクションには、1 つ以上のビューのプロパティのアニメーションのコードが含まれています。

適用対象