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>
|
... 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