Edit

Share via


UIApplication.SetStatusBarStyle(UIStatusBarStyle, Boolean) Method

Definition

Sets the style of the status bar, optionally animating the change.

[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

Parameters

statusBarStyle
UIStatusBarStyle

A constant that specifies the style for the status bar.

animated
Boolean

true if transition to the new orientation should be animated; otherwise false.

Attributes

Applies to