UIViewController.DidRotate(UIInterfaceOrientation) 메서드

정의

UI가 회전한 후 호출됩니다.

[Foundation.Export("didRotateFromInterfaceOrientation:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, "Use Adaptive View Controllers instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DidRotate (UIKit.UIInterfaceOrientation fromInterfaceOrientation);
abstract member DidRotate : UIKit.UIInterfaceOrientation -> unit
override this.DidRotate : UIKit.UIInterfaceOrientation -> unit

매개 변수

fromInterfaceOrientation
UIInterfaceOrientation

이전 방향입니다.

특성

설명

애플리케이션 개발자는 자동 회전에서 제공하는 것 이상으로 회전 논리를 수행하도록 이 메서드를 재정의할 수 있습니다(예: 값비싼 그리기 매개 변수 다시 계산, 미디어 재생 수정 및 다시 시작 등).

이 메서드가 호출되면 속성이 InterfaceOrientation 이미 새 UIInterfaceOrientation로 설정되었습니다.

적용 대상