Compartilhar via


UIViewController.ShouldAutorotateToInterfaceOrientation Método

Definição

true se o der UIViewController suporte à rotação para o especificado 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

Parâmetros

toInterfaceOrientation
UIInterfaceOrientation

O final UIInterfaceOrientation.

Retornos

true se o der UIViewController suporte à rotação para o especificado UIInterfaceOrientation.

Atributos

Comentários

Os desenvolvedores de aplicativos não devem usar esse método preterido. Em vez disso, eles devem usar ShouldAutorotateToInterfaceOrientation(UIInterfaceOrientation), PreferredInterfaceOrientationForPresentation()e GetSupportedInterfaceOrientations().

Aplica-se a