views:

304

answers:

2

Hello,
I just finish my iPhone game using cocos2d. But before I put it on the AppStore, I'd like to make it work on iPad (which have a bigger screen) and iPhone 4 (which have a bigger resolution).
So, how can I determine programmatically that my app is running on an iPhone, iPad or iPhone 4, to be able to use the correct coordinates / images in my game?

Thanks for your help!

+1  A: 
KennyTM
Hey Kenny, could you please tell me what you mean by "@2x" in little more detail?
Dave
@Dave: Say, if you have a 15x27 image `foo.png`, then you create a 30x54 `[email protected]`. iPhone 4 will pick up the latter whenever you need `foo.png`. See the SDK doc for detail.
KennyTM
A: 

Anyone know what the UIDevice model is for iPhone 4? I need to tweak some text if they are running on an iPhone 4. tks

stoutyhk