bijan
bijan

Reputation: 1685

autoresizesSubviews

The iOS6 UIView Class Reference says on the property autoresizesSubviews:

A Boolean value that determines whether the receiver automatically resizes its subviews when its bounds change.
Discussion
When set to YES, the receiver adjusts the size of its subviews when its bounds change. The default value is YES.

To me as a non english native-speaker this is a bit unsharp. Does "its" refer to the receiver or to the subviews of the receiver?

Upvotes: 1

Views: 3871

Answers (1)

jrturton
jrturton

Reputation: 119242

It refers to the receiver.

If autoResizesSubviews is set to YES on view A, which is the superview of views B and C, then when the bounds of A is changed, A will adjust the sizes of B and C.

Upvotes: 2

Related Questions