Returns the header view to transition during an interface orientation change.
- iOS 2.0–8.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
The header view or
nil if there is no header view. If the current view controller is a tab bar controller, this method returns the header view of the view controller in the selected tab. If the current view controller is a navigation controller, this method returns the associated navigation bar.
In most cases, the header view is the navigation bar and the footer view is the tab bar. If you are implementing this method in a custom view controller that has its own custom header view, you can override this method to return that header view. The view returned from this method should already be part of your view controller's view hierarchy.
You are responsible for adjusting the size and position of the returned view to match the target orientation. You would make such a change in your view controller's rotation methods, such as the