Here's how it's declared in UIImage.h:
- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight;
Here's what a deprecated method name typically looks like:
- (CGSize)sizeWithFont:(UIFont *)font NS_DEPRECATED_IOS(2_0, 7_0, "Use -sizeWithAttributes:");
For a warning to appear, one of the NS_DEPRECATED
macros from NSObjCRuntime.h
(or one of the availability macros from AvailabilityMacros.h
) must be present.
This is probably considered a bug, and should be reported on http://bugreport.apple.com.