Instance Property

autoresizesSubviews

A Boolean value that determines whether the receiver automatically resizes its subviews when its bounds change.

Declaration

@property(nonatomic) BOOL autoresizesSubviews;

Discussion

When set to YES, the receiver adjusts the size of its subviews when its bounds change. The default value is YES.

See Also

Configuring the Resizing Behavior

contentMode

A flag used to determine how a view lays out its content when its bounds change.

UIViewContentMode

Options to specify how a view adjusts its content when its size changes.

contentStretch

The rectangle that defines the stretchable and nonstretchable regions of a view.

Deprecated
- sizeThatFits:

Asks the view to calculate and return the size that best fits the specified size.

- sizeToFit

Resizes and moves the receiver view so it just encloses its subviews.

autoresizingMask

An integer bit mask that determines how the receiver resizes itself when its superview’s bounds change.