Anyone know if there is a solution in cocos2d to support high resolution imagery with iOS 4.0?
My code:
****
UIImage *Menu = [UIImage imageNamed:@"MenuBG"];
CCMenuItem *ppMenuItem = [CCMenuItemImage
itemFromNormalImage:@"Menu.png" selectedImage:@"Menu.png"
target:self selector:@selector(nilButtonTapped

];
****
What I think may work is to pass the UIImage "Menu" to "itemFromNormalImage", however I get an uncaught exception when I attempt this.
Any ideas?
In the Programming guide it states:
"The UIImage class handles all of the work needed to load high-resolution images into your application. When creating new image objects, you use the same name to request both the standard and the high-resolution versions of your image. For example, if you have two image files, named Button.png and
Button@2x.png, you would use the following code to request your button image:
UIImage* anImage = [UIImage imageNamed:@"Button"];
On devices with high-resolution screens, the imageNamed:, imageWithContentsOfFile:, and initWithContentsOfFile: methods automatically looks for a version of the requested image with the @2x modifier in its name. It if finds one, it loads that image instead. If you do not provide a high-resolution version of a given image, the image object still loads a standard-resolution image (if one exists) and scales it during drawing."