Instance Method

application(_:didChangeStatusBarFrame:)

Tells the delegate when the frame of the status bar has changed.

Declaration

optional func application(_ application: UIApplication, didChangeStatusBarFrame oldStatusBarFrame: CGRect)

Parameters

application

Your singleton app object.

oldStatusBarFrame

The previous frame of the status bar, in screen coordinates.

Discussion

After calling this method, the app also posts a UIApplicationDidChangeStatusBarFrame notification to give interested objects a chance to respond to the change.

See Also

Managing Interface Geometry

func application(UIApplication, supportedInterfaceOrientationsFor: UIWindow?)

Asks the delegate for the interface orientations to use for the view controllers in the specified window.

func application(UIApplication, willChangeStatusBarOrientation: UIInterfaceOrientation, duration: TimeInterval)

Tells the delegate when the interface orientation of the status bar is about to change.

func application(UIApplication, didChangeStatusBarOrientation: UIInterfaceOrientation)

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

func application(UIApplication, willChangeStatusBarFrame: CGRect)

Tells the delegate when the frame of the status bar is about to change.