UIViewController.AttemptRotationToDeviceOrientation 메서드

정의

프로그래밍 방식으로 뷰 회전을 트리거합니다.

[Foundation.Export("attemptRotationToDeviceOrientation")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void AttemptRotationToDeviceOrientation ();
static member AttemptRotationToDeviceOrientation : unit -> unit
특성

설명

가 를 반환false하는 경우 ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation) 이 메서드를 사용하여 프로그래밍 방식으로 뷰 회전을 트리거할 수 있습니다.

적용 대상

추가 정보

  • <xref:UIKit.UIViewController.WillRotate>
  • <xref:UIKit.UIViewController.ShouldAutorotateToInterfaceOrientation>