Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-24-2009, 10:36 PM   #6 (permalink)
ipodtouchmaster05
Registered Member
 
Join Date: Sep 2008
Posts: 180
Default

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
ipodtouchmaster05 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,805
Threads: 89,205
Posts: 380,614
Top Poster: BrianSlick (7,129)
Welcome to our newest member, chloecoburn
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:14 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.