I use iOS SDK 6.1. iOS 6.1 doc says the UIImage method stretchableImageWithLeftCapWidth:topCapHeight: is deprecated in iOS 5.0:
Creates and returns a new image object with the specified cap values. (Deprecated in iOS 5.0. Deprecated. Use the resizableImageWithCapInsets: instead, specifying cap insets such that the interior is a 1x1 area.)
If we look in the header file of UIImage we can see that there is no preprocessor macro NS_DEPRECATED(5.0) for the method stretchableImageWithLeftCapWidth:topCapHeight: defined:
@interface UIImage(UIImageDeprecated)
// use resizableImageWithCapInsets: and capInsets.
- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight;
@property(nonatomic,readonly) NSInteger leftCapWidth; // default is 0. if non-zero, horiz. stretchable. right cap is calculated as width - leftCapWidth - 1
It seems to be the iOS documentation is wrong. Can someone confirm if this a documentation or programming issue?