次の方法で共有


UIApplication.SetStatusBarOrientation(UIInterfaceOrientation, Boolean) メソッド

定義

ステータス バーを に orientation設定します。

[Foundation.Export("setStatusBarOrientation:animated:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, null)]
public virtual void SetStatusBarOrientation (UIKit.UIInterfaceOrientation orientation, bool animated);
abstract member SetStatusBarOrientation : UIKit.UIInterfaceOrientation * bool -> unit
override this.SetStatusBarOrientation : UIKit.UIInterfaceOrientation * bool -> unit

パラメーター

orientation
UIInterfaceOrientation

ステータス バーの特定の向き。

animated
Boolean

true 新しい向きへの切り替えをアニメーション化する必要がある場合は 。 false 切り替えをすぐに行う必要がある場合は 、アニメーションは必要ありません。

属性

注釈

アプリケーションで回転を自動的に処理することが予想される場合は、このメソッドを使用しないでください。 このメソッドが呼び出されると、ステータス バーはローテーションに応じて自動的に変更されません。

適用対象