Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocos2d doesn't use the entire screen of iphone 5

I have a problem with my application ios. It is a universal application of cocos2d 6.0. It works on ipad, iphone 3GS, 4, 4S. Iphone 5 on I can start the application but cocos2d does not use the entire screen. Like iPhone 4. Do you have any idea??

Thank's

like image 982
Emilie Avatar asked Dec 27 '22 15:12

Emilie


1 Answers

Have you added to your project the [email protected] launch image? This will make your app use the full iPhone 5 screen.

If you do not include that launch image, then your app will work in boxed mode (i.e., centered on screen with black bands above and below to fill the entire area).

Note : this is due to the devices different screen resolutions :
iPhone 4 : 960x640 px.
iPhone 5 : 1136x640 px.

like image 121
sergio Avatar answered Dec 31 '22 13:12

sergio