Contents

removeFromSuperviewWithoutNeedingDisplay()

Unlinks the view from its superview and its window and removes it from the responder chain, but does not invalidate its cursor rectangles to cause redrawing.

Declaration

func removeFromSuperviewWithoutNeedingDisplay()

Discussion

The view is also released; if you plan to reuse it, be sure to retain it before sending this message and to release it as appropriate when adding it as a subview of another view.

Unlike its counterpart, removeFromSuperview(), this method can be safely invoked during display.

See Also

Adding and Removing Subviews