Instance Method


Unlinks the view from its superview and its window, and removes it from the responder chain.


func removeFromSuperview()


If the view’s superview is not nil, the superview releases the view.

Calling this method removes any constraints that refer to the view you are removing, or that refer to any view in the subtree of the view you are removing.

See Also

Related Symbols

var superview: UIView?

The receiver’s superview, or nil if it has none.

var subviews: [UIView]

The receiver’s immediate subviews.