removeFromSuperview()
Unlinks the view from its superview and its window, and removes it from the responder chain.
Declaration
func removeFromSuperview()Mentioned in
Discussion
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.