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>
__________________
FingerTest: Fun game where you put your fingers to the ultimate test!
[AppStore] -
$0.99
Penguins!: Addictive game.
[AppStore] -
$1.99
MTracker: Easy to use money tracker.
[AppStore] -
$0.99
iBubblePop: Try to pop as many bubbles as you can!
[AppStore] -
$1.99
If you would like me to work on a project for you, contact me at the following email address.
madpike05@aol.com