In my application i need to find which ios device is being used. Now i’m working in ios sdk 5.1
struct utsname systemInfo;
uname(&systemInfo);
NSString *platform=[NSString stringWithCString:systemInfo.machine
encoding:NSUTF8StringEncoding];
above code is perfectly working in ios SDK 5.0 but, not working in ios 5.1.
How can i find the device version in ios 5.1 like, iphone 3/3G/4/4s or ipad/ipad2 etc..
it gives you device name (iPhone, iPad)
it gives you ios version . not device name.