The problem is that the _imageScaledToSize:interpolationQuality:
method is no longer available in iOS. You probably found it searching around online for code, and found a really old post. I just checked the UIKit/UIImage.h header by dumping the UIKit Framework with class-dump, and there is no private method named _imageScaledToSize:interpolationQuality:
in UIImage
as of iOS 5.0.
I would bet the iOS public APIs for scaling images would suffice for you, so I'd recommend using one of those. It depends what you're using this image for. Is it in a UIImageView
?
Anyway, see this answer for a couple alternatives to the way you're trying to scale, which won't work anymore.
P.S. this is one of the reasons to avoid using private APIs if you can. Even if your app isn't for the App Store, and you don't have to worry about Apple's approval. The API being private means it can, and often will, be changed or removed in a future version of iOS.