Instance Method

willMoveToWindow:

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

Declaration

- (void)willMoveToWindow:(UIWindow *)newWindow;

Parameters

newWindow

The window object that will be at the root of the receiver's new view hierarchy. This parameter may be nil.

Discussion

The default implementation of this method does nothing. Subclasses can override it to perform additional actions whenever the window changes.

See Also

Observing View-Related Changes

- didAddSubview:

Tells the view that a subview was added.

- 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.

- didMoveToWindow

Tells the view that its window object changed.