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 04-14-2011, 03:56 AM   #9 (permalink)
Nic_Tesla432
Registered Member
 
Join Date: Apr 2011
Posts: 2
Nic_Tesla432 is on a distinguished road
Default I was wondering ...

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>
... if Apple allows this function "uname". I had such a problem before and I needed to change that.

I need to get the Device information (version) too, but is it possible to get information if the device has a retina display?
How does iOS "decide", if it should take a picture called "picture.png" or "picture_name@2x.png"?

Best regards
Nic
Nic_Tesla432 is offline   Reply With Quote
 

» Advertisements
» Online Users: 395
18 members and 377 guests
aaronredmond844, apatsufas, asleylq98, blueorb, Clouds, DaveDee, erdinc27, eski, guusleijsten, jacob7khan, jeroenkeij, MysticLine, networ, sacha1996, shweta128, sirenum, Warblr, zhaoningmei
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,597
Threads: 94,084
Posts: 402,781
Top Poster: BrianSlick (7,990)
Welcome to our newest member, aaronredmond844
Powered by vBadvanced CMPS v3.1.0

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