Compartilhar via


UIApplication.SetStatusBarOrientation(UIInterfaceOrientation, Boolean) Método

Definição

Define a barra de status como orientation.

[Foundation.Export("setStatusBarOrientation:animated:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, null)]
public virtual void SetStatusBarOrientation (UIKit.UIInterfaceOrientation orientation, bool animated);
abstract member SetStatusBarOrientation : UIKit.UIInterfaceOrientation * bool -> unit
override this.SetStatusBarOrientation : UIKit.UIInterfaceOrientation * bool -> unit

Parâmetros

orientation
UIInterfaceOrientation

A orientação específica para a barra de status.

animated
Boolean

true se a transição para a nova orientação deve ser animada; false se a transição deve ser imediata, sem nenhuma animação.

Atributos

Comentários

Esse método não deverá ser usado se espera-se que o aplicativo manipule a rotação automaticamente. Depois que esse método for chamado, a barra de status não será alterada automaticamente em resposta à rotação.

Aplica-se a