当前位置: 动力学知识库 > 问答 > 编程问答 >

Determining iPhone Model

问题描述:

How do I determine which specific model of iPhone I have?

I know about [UIDevice currentDevice].model will tell me if it's an iPhone or an iPod Touch. Will this tell me if I have a 2G, a 3G, or a 3GS?

Thanks.

EDIT

This also becomes important to me when identifying between a first gen iPod Touch, and a second gen.

网友答案:

See How to tell if your code is running on an iPhone or an iPhone3G?.

分享给朋友:
您可能感兴趣的文章:
随机阅读: