I did think getFrameSize() can get real size of device.
but it’s still 960*640, not 1136*640 on iPhone5.
How can I get the real size of Device?
I did think getFrameSize() can get real size of device.
but it’s still 960*640, not 1136*640 on iPhone5.
How can I get the real size of Device?
You probably should look into the CCEGLViewProtocol.
At last , I can get the right size of device.
The proble is I didnt add launch image for iPhone 5.
It’s solved after add Default-568h@2x.png to project.
土豆 薛 wrote:
I did think getFrameSize() can get real size of device.
>
but it’s still 960*640, not 1136*640 on iPhone5.
>
How can I get the real size of Device?
*CCEGLViewProtocol::getFrameSize()* is what you need.