<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewController/preferredStatusBarStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIViewController(py)preferredStatusBarStyle"
  },
  "title" : "preferredStatusBarStyle"
}
-->

# preferredStatusBarStyle

The preferred status bar style for the view controller.

```
var preferredStatusBarStyle: UIStatusBarStyle { get }
```

## Return Value

A [`UIStatusBarStyle`](/documentation/UIKit/UIStatusBarStyle) key indicating your preferred status bar style for the view controller.

## Discussion

You can override the preferred status bar style for a view controller by implementing the [`childForStatusBarStyle`](/documentation/UIKit/UIViewController/childForStatusBarStyle) method.

If the return value from this method changes, call the [`setNeedsStatusBarAppearanceUpdate()`](/documentation/UIKit/UIViewController/setNeedsStatusBarAppearanceUpdate()) method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)