Unlinks the view from its superview and its window, removes it from the responder chain, and invalidates its cursor rectangles.
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
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.
Never invoke this method during display.
Managing the View Hierarchy
The view that is the parent of the current view.
The array of views embedded in the current view.
The view’s window object, if it is installed in a window.
Adds a view to the view’s subviews so it’s displayed above its siblings.
Overridden by subclasses to perform additional actions when subviews are added to the view.
YES if the view is a subview of a given view or if it’s identical to that view; otherwise, it returns
The view’s closest opaque ancestor, which might be the view itself.
Informs the view that it’s being added to the view hierarchy of the specified window object (which may be
Overridden by subclasses to perform additional actions before subviews are removed from the view.
The menu item containing the view or any of its superviews in the view hierarchy.