Instance Method

didAddSubview:

Tells the view that a subview was added.

Declaration

- (void)didAddSubview:(UIView *)subview;

Parameters

subview

The view that was added as a subview.

Discussion

The default implementation of this method does nothing. Subclasses can override it to perform additional actions when subviews are added. This method is called in response to adding a subview using any of the relevant view methods.

See Also

Observing View-Related Changes

- willRemoveSubview:

Tells the view that a subview is about to be removed.

- willMoveToSuperview:

Tells the view that its superview is about to change to the specified superview.

- didMoveToSuperview

Tells the view that its superview changed.

- willMoveToWindow:

Tells the view that its window object is about to change.

- didMoveToWindow

Tells the view that its window object changed.