-1

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.

Mayur Birari
  • 5,837
  • 8
  • 34
  • 61
Emilie
  • 167
  • 1
  • 1
  • 8

2 Answers2

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