Bewerken

Delen via


UIViewController.PreferredStatusBarStyle Method

Definition

The preferred UIStatusBarStyle for this UIViewController.

[Foundation.Export("preferredStatusBarStyle")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIStatusBarStyle PreferredStatusBarStyle ();
abstract member PreferredStatusBarStyle : unit -> UIKit.UIStatusBarStyle
override this.PreferredStatusBarStyle : unit -> UIKit.UIStatusBarStyle

Returns

A UIStatusBarStyle key that specifies the view controller's preferred status bar style.

Attributes

Applies to