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.


请参阅如何判断您的代码是在iPhone还是iPhone3G上运行?

链接地址: http://www.djcxy.com/p/50360.html

上一篇: 如何检测iPhone OS设备是否有接近传感器?

下一篇: 确定iPhone模型