UIViewController.PreferredInterfaceOrientationForPresentation メソッド

定義

この UIViewControllerの内容を最もよく表示する向き。

[Foundation.Export("preferredInterfaceOrientationForPresentation")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIInterfaceOrientation PreferredInterfaceOrientationForPresentation ();
abstract member PreferredInterfaceOrientationForPresentation : unit -> UIKit.UIInterfaceOrientation
override this.PreferredInterfaceOrientationForPresentation : unit -> UIKit.UIInterfaceOrientation

戻り値

既定値は、ステータス バーの現在の向きまたは実行中のアプリケーションの Info.plist [サポートされているインターフェイスの向き] リストの最初のエントリです。

属性

注釈

アプリケーションが複数の向きをサポートしている場合、システムは最初に 全画面表示で を表示するときにこの向きを UIViewController 使用します。 アプリケーション開発者は、コンテンツ ビューを UIInterfaceOrientation 最適に表示する に設定する必要があります。

適用対象