Notifies the view controller that its view is about to be added to a view hierarchy.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
YES, the view is being added to the window using an animation.
This method is called before the view controller's view is about to be added to a view hierarchy and before any animations are configured for showing the view. You can override this method to perform custom tasks associated with displaying the view. For example, you might use this method to change the orientation or style of the status bar to coordinate with the orientation or style of the view being presented. If you override this method, you must call
super at some point in your implementation.
For more information about the how views are added to view hierarchies by a view controller, and the sequence of messages that occur, see Supporting Accessibility.