In iOS 6.0 the contentStretch property of UIView was deprecated. How can I achieve the same functionality with new/old/other API?
The functionality I am looking for is stretching just part of an image (everything but the edges) on a UIButton.
In iOS 6.0 the contentStretch property of UIView was deprecated. How can I achieve the same functionality with new/old/other API?
The functionality I am looking for is stretching just part of an image (everything but the edges) on a UIButton.
Use resizableImageWithCapInsets and UIEdgeInsets to make a stretching UIButton background image. For example:
I don't think you can stretch more than one pixel both horizontal and vertical.
Hope this helps.