UIView.AutosizesSubviews Property


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

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

Property Value

The default value is true.



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