Is there an opportunity to check if iPhone is 3GS or 3G?
+2
A:
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)
Pablo Santa Cruz
2009-12-29 11:36:13
Thanks for your reply. But with the UIDevice datatype you can't read the exactly model number 3GS or 3G or even 2G.
Alexander
2009-12-29 11:50:36
Take a look at the new article I linked.
Pablo Santa Cruz
2009-12-29 12:03:49
Thanks, i will try it.
Alexander
2009-12-29 12:09:41