Share via


UIView.Hidden Property

Definition

Specifies whether the UIView displays or not.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool Hidden { [Foundation.Export("isHidden")] get; [Foundation.Export("setHidden:")] set; }
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("isHidden")>]
[<set: Foundation.Export("setHidden:")>]
member this.Hidden : bool with get, set

Property Value

The default value is false.

Attributes

Remarks

A hidden UIView does not display and does not receive input events. It does, however, participate in resizing and layout events and remains in its Superview's list of Subviewss.

A hidden UIView hides its descendant views in addition to hiding itself. This does not affect the Hidden property of the descendant views. Thus, a UIView may be hidden even though its Hidden property is false.

Applies to