Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Platforms
- iPhone1,1 -> iPhone 1G
- iPhone1,2 -> iPhone 3G
- iPod1,1 -> iPod touch 1G
- iPod2,1 -> iPod touch 2G
- */
- size_t size;
- sysctlbyname("hw.machine", NULL, &size, NULL, 0);
- char *machine = malloc(size);
- sysctlbyname("hw.machine", machine, &size, NULL, 0);
- NSString *platform = [NSString stringWithCString:machine encoding: NSUTF8StringEncoding];
- free(machine);
Add Comment
Please, Sign In to add comment