Relying in the size is wrong in so many levels. How about we ask to the system?
- (NSString *) getDeviceModel { struct utsname systemInfo; uname(&systemInfo); return [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding]; } Taken from Best way to detect hardware type, iPhone4 or iPhone5?Best way to detect hardware type, iPhone4 or iPhone5?, edzio27 answer.