Deprecated UIView Methods
A method identified as deprecated has been superseded and may become unsupported in the future.
Deprecated in iOS 6.0
contentStretch
The rectangle that defines the stretchable and nonstretchable regions of a view. (Deprecated in iOS 6.0.)
Discussion
You use this property to control how a view’s content is stretched to fill its bounds when the view is resized. Content stretching is often used to animate the resizing of a view. For example, buttons and other controls use stretching to maintain crisp borders while allowing the middle portions of the control to stretch and fill the available space.
The values you specify for this rectangle must be normalized to the range 0.0 to 1.0. These values are then scaled to the size of the view’s content to obtain the appropriate pixel values. The default value for this rectangle has an origin of (0.0, 0.0) and a size of (1.0, 1.0). This reflects a rectangle whose stretchable portion encompasses the entire content.
Availability
- Available in iOS 3.0 and later.
- Deprecated in iOS 6.0.
Declared In
UIView.h© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-09-19)