How can I determine pragmatically that my app is running on an iPhone, iPad or iPhone 4?

Posted by micropsari on Stack Overflow See other posts from Stack Overflow or by micropsari
Published on 2010-06-12T11:00:17Z Indexed on 2010/06/12 11:02 UTC
Read the original article Hit count: 268

Filed under:
|
|
|

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 pragmatically 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!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode