Quote:
Originally Posted by ipodtouchmaster05
You can do something like this:
Code:
struct utsname u;
uname(&u);
NSString *nameString = [NSString stringWithFormat:@"%s", u.machine];
nameString will be either iPod1,1 iPod1,2 and iPhone1,1 iPhone1,2 iPhone1,3
You will also need to import this header:
Code:
#import <sys/utsname.h>
|
On the iPhone 4, it's returning "iPhone3,1"
Does anyone know the values for the newest iPod touch 4, or iPad?