Notifies the view that the layout margins changed.
SDKs
- iOS 8.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
func layoutMarginsDidChange()
Discussion
The default implementation of this method does nothing. Subclasses can override this method and use it to respond when the value in the view’s layout
property changes. For example, you might override this method if your view subclass handles layout manually or uses the layout margins during drawing. In both cases, you could use this method to initiate a drawing or layout update.