I downloaded the newest cocos2d-x version(2.1), and want to get the screen size from
CCEGLView::sharedOpenGLView()->getFrameSize();
I started from iphone 4-inch simulator, the frame size should be
1136 * 640.
But getFrameSize() return 960 * 640.
(I didn’t call any setDesignResolutionSize() method. And seems the size of glView is 960 * 640).
Sounds like you are missing a “Default-568h@2x.png” image file, iOS expects to see it to know you support the 4" screen ratio. Copy the one out of the testCPP sample.
And I think you’ll find the output will then be “Cocos2d: framesize : 320.000000, 568.000000”.