I have a UIImage
that i know its ok before scaling.
I need to scale it so i can set it to ccsprite .
I scale it ,but then i got a white image ..
UIImage *scaled=[newImage copy];
//scale the image
CGRect screenRect = CGRectMake(0, 0, 640.0, 960.0);
UIGraphicsBeginImageContext(screenRect.size);
scaled = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
CCSprite * image = [CCSprite spriteWithCGImage:scaled.CGImage
key:[NSString stringWithFormat:@"%d",[localImagesSpritesArray count]]];
What could it be ?