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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-13-2011, 06:33 PM   #7 (permalink)
Gweetle
Try This At Home
 
Gweetle's Avatar
 
Join Date: Nov 2010
Location: Planet Earth
Posts: 208
Gweetle is on a distinguished road
Default

Quote:
Originally Posted by ipodtouchmaster05 View Post
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?
__________________
Gweetle is offline   Reply With Quote
 

» Advertisements
» Online Users: 451
15 members and 436 guests
Ananth, antonwilliams, carmeliaxw97, dbramhall, dre, heshiming, Paul Slocum, Pitter20, raymng, Renrob, RETRO, ryantcb, st.Jimmy, UconnAggie, waterkamp
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,594
Threads: 94,083
Posts: 402,778
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kopmlop
Powered by vBadvanced CMPS v3.1.0

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