I have this code:
+ (UIImage*) someImageMethod:(UIImage*)originalImage {
UIImageView *tempImageView = [[UIImageView alloc] initWithImage:originalImage];
UIGraphicsBeginImageContext(tempImageView.frame.size);
CGContextRef context = UIGraphicsGetCurrentContext();
...
[tempImageView.layer renderInContext:context];
...
}
This generates a persistent warning: No '-RenderInContext' method found.
Why such an error? How may I make it disappear?
Be sure you
#import <QuartzCore/QuartzCore.h>, and add the framework to your Project.