Instance Property

hiddenOrHasHiddenAncestor

A Boolean value indicating whether the view is hidden from sight because it, or one of its ancestors, is marked as hidden.

Declaration

@property(getter=isHiddenOrHasHiddenAncestor, readonly) BOOL hiddenOrHasHiddenAncestor;

Discussion

The value of this property is YES if the value of the hidden property is YES for the current view or any of its ancestors in the view hierarchy. This property does not account for other reasons why a view might be considered hidden, such as being positioned outside its superview’s bounds, not having a window, or residing in a window that is offscreen or overlapped by another window.

See Also

Hiding Views

hidden

A Boolean value indicating whether the view is hidden.

- viewDidHide

Invoked when the view is hidden, either directly, or in response to an ancestor being hidden.

- viewDidUnhide

Invoked when the view is unhidden, either directly, or in response to an ancestor being unhidden