Freigeben über


UIViewController.ShouldAutorotateToInterfaceOrientation Methode

Definition

true , wenn die UIViewController Drehung zum angegebenen UIInterfaceOrientationunterstützt.

[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

Parameter

toInterfaceOrientation
UIInterfaceOrientation

Die endgültige UIInterfaceOrientation.

Gibt zurück

true , wenn die UIViewController Drehung zum angegebenen UIInterfaceOrientationunterstützt.

Attribute

Hinweise

Anwendungsentwickler sollten diese veraltete Methode nicht verwenden. Stattdessen sollten sie , PreferredInterfaceOrientationForPresentation()und GetSupportedInterfaceOrientations()verwendenShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation).

Gilt für: