I have a problem in my application with cocos2d retina picture. When I run the application, the image retina is displayed, but it doesn't resize. Help me.
Asked
Active
Viewed 638 times
-1
-
could you plz check your image size is as per apple guidline – Mayur Birari Nov 29 '12 at 13:06
-
the size of my image is correct: 640x960 – Emilie Nov 29 '12 at 13:20
2 Answers
0
First check the your application enabled or not.
if( ! [director_ enableRetinaDisplay:YES] )
Second your image naming like this:
[sharedFileUtils setiPhoneRetinaDisplaySuffix:@"-hd"]; // Default on iPhone RetinaDisplay is "-hd"
[sharedFileUtils setiPadSuffix:@"-ipad"]; // Default on iPad is "ipad"
[sharedFileUtils setiPadRetinaDisplaySuffix:@"-ipadhd"]; // Default on iPad RetinaDisplay is "-ipadhd"
image.png(normal - size is 320x480)
image-hd.png(retina - size is 640x960)
image-ipad.png(normal ipad - size is 1024x768)
image-ipadhd.png(ipad retina - size is 2048x1536)

Mayur Birari
- 5,837
- 8
- 34
- 61

Sudhakar
- 1,517
- 1
- 10
- 22
-
I have the message: retina display not supported but I run on an iPhone 5. Yes my images have the correct name and correct size. – Emilie Nov 29 '12 at 13:24
0
Please check apple documentation for Launch image (required for all apps).
As iPhone 5 comes with different screen resolution in iOS6-sdk.
All you need to do is create a splash file named as Default-568h@2x.png
with the resolution 1136x640
, and put it in your Resources/iphone folder.
If you are updating application from older sdk to newer sdk then check you plist file and option to launch image.

Mayur Birari
- 5,837
- 8
- 34
- 61