---
title: "application(_:didChangeStatusBarOrientation:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiapplicationdelegate/application(_:didchangestatusbarorientation:)"
---

# application(_:didChangeStatusBarOrientation:)

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

## Declaration

```swift
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 doc://com.apple.uikit/documentation/UIKit/UIApplicationDelegate#Responding-to-app-life-cycle-events for details.

## Discussion

Discussion The delegate can get the current device orientation from the shared UIDevice object. After calling this method, the app also posts a didChangeStatusBarOrientationNotification notification to give interested objects a chance to respond to the change.

## See Also

### Deprecated

- [application(_:didRegister:)](uikit/uiapplicationdelegate/application(_:didregister:).md)
- [application(_:didReceive:)](uikit/uiapplicationdelegate/application(_:didreceive:).md)
- [application(_:didReceiveRemoteNotification:)](uikit/uiapplicationdelegate/application(_:didreceiveremotenotification:).md)
- [application(_:handleActionWithIdentifier:for:completionHandler:)](uikit/uiapplicationdelegate/application(_:handleactionwithidentifier:for:completionhandler:).md)
- [application(_:handleActionWithIdentifier:for:withResponseInfo:completionHandler:)](uikit/uiapplicationdelegate/application(_:handleactionwithidentifier:for:withresponseinfo:completionhandler:).md)
- [application(_:handleActionWithIdentifier:forRemoteNotification:completionHandler:)](uikit/uiapplicationdelegate/application(_:handleactionwithidentifier:forremotenotification:completionhandler:).md)
- [application(_:handleActionWithIdentifier:forRemoteNotification:withResponseInfo:completionHandler:)](uikit/uiapplicationdelegate/application(_:handleactionwithidentifier:forremotenotification:withresponseinfo:completionhandler:).md)
- [application(_:handleOpen:)](uikit/uiapplicationdelegate/application(_:handleopen:).md)
- [application(_:open:sourceApplication:annotation:)](uikit/uiapplicationdelegate/application(_:open:sourceapplication:annotation:).md)
- [application(_:willChangeStatusBarOrientation:duration:)](uikit/uiapplicationdelegate/application(_:willchangestatusbarorientation:duration:).md)
- [application(_:willChangeStatusBarFrame:)](uikit/uiapplicationdelegate/application(_:willchangestatusbarframe:).md)
- [application(_:didChangeStatusBarFrame:)](uikit/uiapplicationdelegate/application(_:didchangestatusbarframe:).md)
- [application(_:handle:completionHandler:)](uikit/uiapplicationdelegate/application(_:handle:completionhandler:).md)
- [application(_:performFetchWithCompletionHandler:)](uikit/uiapplicationdelegate/application(_:performfetchwithcompletionhandler:).md)
- [application(_:shouldSaveApplicationState:)](uikit/uiapplicationdelegate/application(_:shouldsaveapplicationstate:).md)
