UIView.AutosizesSubviews Property

Definition

Specifies whether the receiver should automatically resize its Subviews when the receiver's Bounds change.

public virtual bool AutosizesSubviews { [Foundation.Export("autoresizesSubviews")] get; [Foundation.Export("setAutoresizesSubviews:")] set; }
member this.AutosizesSubviews : bool with get, set

Property Value

The default value is true.

Attributes

Remarks

If this value is true, this UIView will resize its Subviews when this UIView's Bounds change.

Application developers may wish to use the more powerful Auto Layout capability rather than the older Autoresizing Mask capability.

Applies to