I am adding a CCSprite from a jpg to the HelloWorldScene (from the Cocos2D/Box2D xcode template), but the image appears very faint as if it is mostly transparent (about 20% opaque), on an iPhone device. This image shows up correctly in the simulator.
Here's how I am adding the sprite:
CGImageRef img =
[[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"mygraphic" ofType:@"jpg"]] CGImage];
CCSprite *sprite = [CCSprite spriteWithCGImage:img key:@"img1"];
[self addChild:sprite];
I am using 0.99.5-beta 3 - is this a known issue or is there something I am missing?
Thanks in advance for any help or insights that can be provided.