Take the 2-minute tour ×

i have used cocos2d-x to code game for ios 4, ios 4s, ios 5 with screen size (3.5 inch and 4 inch)

First, my resource are desgined for ios 4 and ios 4s with screen size : 3.5 inch.

so if i want to use for ios 5 with screen size 4 inch.what do i do?

share|improve this question
I think you mean iPhone 4 and iPhone 5? The iOS Version has nothing to do with screen size. –  bummzack Jul 7 at 7:09

1 Answer 1

A simple solution is that using [[CCDirector sharedDirector] convertToUI] and not using it. If you want to place align top, using convertToUI or else using normal ccp(x, y). Also you need to write a method to resize the area that need to fill up the screen;

Another good option is to use the CocosBuilder to create the user interface; Can know more at the following URL: http://www.raywenderlich.com/23996/introduction-to-cocosbuilder

share|improve this answer

Your Answer


