Instance Property

detachesHiddenViews

A Boolean value that indicates whether the stack view removes hidden views from its view hierarchy.

Declaration

@property BOOL detachesHiddenViews;

Discussion

When the value of this property is YES, setting the hidden property of a view to YES causes the stack view to remove hidden views from its view hierarchy and put them in the detachedViews property. Changing the view's hidden property to NO causes the stack view to add the view back to the view hierarchy. When the value of this property is NO, views remain in the view hierarchy, even when they are hidden. The default value of this property is YES.

See Also

Configuring Dynamic Behavior for a Stack View

- setClippingResistancePriority:forOrientation:

Sets the Auto Layout priority for resisting clipping of views in the stack view when Auto Layout attempts to reduce the stack view’s size.

- setHuggingPriority:forOrientation:

Sets the Auto Layout priority for the stack view to minimize its size, for a specified user interface axis.