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 콘텐츠 보기를 가장 잘 표시하는 로 설정해야 합니다.

적용 대상