Contents

application(_:didChangeStatusBarOrientation:)

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

Declaration

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 Uiapplicationdelegate for details.

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