UIViewController.ShouldAutorotateToInterfaceOrientation 메서드

정의

trueUIViewController 지정된 UIInterfaceOrientation로의 회전을 지원하면 입니다.

[Foundation.Export("shouldAutorotateToInterfaceOrientation:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use both 'GetSupportedInterfaceOrientations' and 'PreferredInterfaceOrientationForPresentation' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldAutorotateToInterfaceOrientation (UIKit.UIInterfaceOrientation toInterfaceOrientation);
abstract member ShouldAutorotateToInterfaceOrientation : UIKit.UIInterfaceOrientation -> bool
override this.ShouldAutorotateToInterfaceOrientation : UIKit.UIInterfaceOrientation -> bool

매개 변수

toInterfaceOrientation
UIInterfaceOrientation

마지막 UIInterfaceOrientation입니다.

반환

trueUIViewController 지정된 UIInterfaceOrientation로의 회전을 지원하면 입니다.

특성

설명

애플리케이션 개발자는 사용되지 않는 이 메서드를 사용하면 안 됩니다. 대신 , 및 GetSupportedInterfaceOrientations()PreferredInterfaceOrientationForPresentation()사용해야 ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation)합니다.

적용 대상