开发者

Is there an opportunity to check if iPhone is 3GS or 3G?

Is there an opportunity to check if iPhone is 3GS or 3开发者_运维技巧G?


You can use UIDevice class.

Also, taking a look at this blog post might help.

There is an article at ARS TECHNICA that can provide more info on determining exactly the iPhone model you have. It involves using sysctlbyname system call and considering the following information:

  • iPhone1,1 (for the first gen iPhone)
  • iPhone1,2 (for the 3G model)
  • iPhone2,1 (for the 3GS model)
  • iPod1,1 (first gen iPod touch)
  • iPod2,1 (second gen iPod touch)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜