Inserts a view among the view’s subviews so it’s displayed immediately above or below another view.
The view object to add to the view as a subview.
enum constant specifying the position of the
aView relative to
otherView. Valid values are
The other view
aView is to be positioned relative to. If
nil (or isn’t a subview of the view),
aView is added above or below all of its new siblings.
This method also sets the view as the next responder of
The view retains
aView. If you use
removeFromSuperview to remove
aView from the view hierarchy,
aView is released. If you want to keep using
aView after removing it from the view hierarchy (if, for example, you are swapping through a number of views), you must retain it before invoking
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.
Unlinks the view from its superview and its window, removes it from the responder chain, and invalidates its cursor rectangles.
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.