application(_:willChangeStatusBarFrame:)
Tells the delegate when the frame of the status bar is about to change.
Declaration
optional func application(_ application: UIApplication, willChangeStatusBarFrame newStatusBarFrame: CGRect)Parameters
- application:
Your singleton app object.
- newStatusBarFrame:
The changed frame of the status bar, in screen coordinates.
Discussion
The app calls this method when it receives a setStatusBarOrientation(_:animated:) message and is about to change the interface orientation.
After calling this method, the app also posts a willChangeStatusBarFrameNotification notification to give interested objects a chance to respond to the change.
See Also
Deprecated
application(_:didRegister:)application(_:didReceive:)application(_:didReceiveRemoteNotification:)application(_:handleActionWithIdentifier:for:completionHandler:)application(_:handleActionWithIdentifier:for:withResponseInfo:completionHandler:)application(_:handleActionWithIdentifier:forRemoteNotification:completionHandler:)application(_:handleActionWithIdentifier:forRemoteNotification:withResponseInfo:completionHandler:)application(_:handleOpen:)application(_:open:sourceApplication:annotation:)application(_:willChangeStatusBarOrientation:duration:)application(_:didChangeStatusBarOrientation:)application(_:didChangeStatusBarFrame:)application(_:handle:completionHandler:)application(_:performFetchWithCompletionHandler:)application(_:shouldSaveApplicationState:)