Upravit

Sdílet prostřednictvím


UIViewController.DidRotate(UIInterfaceOrientation) Method

Definition

Called after the UI has rotated.

[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

Parameters

fromInterfaceOrientation
UIInterfaceOrientation

The prior orientation.

Attributes

Remarks

The application developer can override this method to perform rotation logic beyond what is provided by auto-rotation, for instance, recalculating expensive drawing parameters, modifying and restarting media playback, etc.

When this method is called, the InterfaceOrientation property has already been set to the new UIInterfaceOrientation.

Applies to