Called to notify the view controller that its view is about to layout its subviews.
SDKs
- iOS 5.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
func viewWillLayoutSubviews()
Discussion
When a view's bounds change, the view adjusts the position of its subviews. Your view controller can override this method to make changes before the view lays out its subviews. The default implementation of this method does nothing.