次の方法で共有


UIViewController.WillAnimateFirstHalfOfRotation メソッド

定義

ローテーションの前半に送信された非推奨のメソッド。 アプリケーション開発者は、代わりに を使用 WillAnimateRotation(UIInterfaceOrientation, Double)する必要があります。

[Foundation.Export("willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void WillAnimateFirstHalfOfRotation (UIKit.UIInterfaceOrientation toInterfaceOrientation, double duration);
abstract member WillAnimateFirstHalfOfRotation : UIKit.UIInterfaceOrientation * double -> unit
override this.WillAnimateFirstHalfOfRotation : UIKit.UIInterfaceOrientation * double -> unit

パラメーター

toInterfaceOrientation
UIInterfaceOrientation

新しい向き。

duration
Double

回転アニメーションの前半の継続時間 (秒単位)。

属性

注釈

2 段階のローテーションは非推奨となり、アプリケーション開発者は代わりにシングルステップ ローテーションを使用する必要があります (「」を参照)。WillAnimateRotation(UIInterfaceOrientation, Double)

このメソッドが呼び出されると、 InterfaceOrientation は古い方向に設定されます。

適用対象