Freigeben über


UIApplication.SetStatusBarStyle(UIStatusBarStyle, Boolean) Methode

Definition

Legt den Stil der Statusleiste fest, wobei die Änderung optional animiert wird.

[Foundation.Export("setStatusBarStyle:animated:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UIViewController.PreferredStatusBarStyle' instead.")]
public virtual void SetStatusBarStyle (UIKit.UIStatusBarStyle statusBarStyle, bool animated);
abstract member SetStatusBarStyle : UIKit.UIStatusBarStyle * bool -> unit
override this.SetStatusBarStyle : UIKit.UIStatusBarStyle * bool -> unit

Parameter

statusBarStyle
UIStatusBarStyle

Eine Konstante, die den Stil für die Statusleiste angibt.

animated
Boolean

true wenn der Übergang zur neuen Ausrichtung animiert werden soll; andernfalls false.

Attribute

Gilt für: