Instance Method

willMove(toSuperview:)

Tells the view that its superview is about to change to the specified superview.

Declaration

func willMove(toSuperview newSuperview: UIView?)

Parameters

newSuperview

A view object that will be the new superview of the receiver. This object may be nil.

Discussion

The default implementation of this method does nothing. Subclasses can override it to perform additional actions whenever the superview changes.

See Also

Related Symbols

func didMoveToSuperview()

Tells the view that its superview changed.