Search code examples
ioscocos2d-iphonescreenretina-display

Why is surface size on an iPhone5 wrong?


I'm using cocos2d v2.0.0 with simulator 6.1.

When I compile a project in iPhone5 simulator in xcode, the surface size is

cocos2d: surface size: 1136x640

The application works correctly, fitting to screen borders 1136x640, but when I run application on a iPhone5 Device, I get

cocos2d: surface size: 960x640

The image no longer covers the full screen.

What is the problem?


Solution

  • You need to make sure and have you have a 4 inch launch image defined in your project.