2
我有這樣的代碼:的XCode 4 - 警告爲 - (空)renderInContext:(CGContextRef)CTX
+ (UIImage*) someImageMethod:(UIImage*)originalImage {
UIImageView *tempImageView = [[UIImageView alloc] initWithImage:originalImage];
UIGraphicsBeginImageContext(tempImageView.frame.size);
CGContextRef context = UIGraphicsGetCurrentContext();
...
[tempImageView.layer renderInContext:context];
...
}
這會產生一個持續提醒:No '-RenderInContext' method found.
爲什麼這樣的錯誤?我如何讓它消失?