<!--
{
  "availability" : [
    "iOS: 2.0.0 - 13.0.0",
    "iPadOS: 2.0.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplicationDelegate/application(_:didChangeStatusBarOrientation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIApplicationDelegate(im)application:didChangeStatusBarOrientation:"
  },
  "title" : "application(_:didChangeStatusBarOrientation:)"
}
-->

# application(_:didChangeStatusBarOrientation:)

Tells the delegate when the interface orientation of the status bar has changed.

```
optional func application(_ application: UIApplication, didChangeStatusBarOrientation oldStatusBarOrientation: UIInterfaceOrientation)
```

## Parameters

`application`

Your singleton app object.

`oldStatusBarOrientation`

A constant that indicates the previous orientation of the app’s user interface; see [`Responding to app life-cycle events`](/documentation/UIKit/UIApplicationDelegate#Responding-to-app-life-cycle-events) for details.

## Discussion

The delegate can get the current device orientation from the shared [`UIDevice`](/documentation/UIKit/UIDevice) object.

After calling this method, the app also posts a [`didChangeStatusBarOrientationNotification`](/documentation/UIKit/UIApplication/didChangeStatusBarOrientationNotification) notification to give interested objects a chance to respond to the change.

---

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)