UIDevice ã® model ããããã£ã§ã¯ iPhone ã iPod touch ãªã©ããããã£ã±ãªåºå¥ããã§ãã¾ããã 3G ã 3GS ãã®éããèå¥ããã«ã¯ã©ã¤ãã©ãªé¢æ° sysctlbyname() ã使ãã¾ãã sysctlbyname(3) Mac OS X Manual Page sysctl() ã¯ã·ã¹ãã ã®æ§ã ãªæ å ±ãåå¾ããé¢æ°ã§ãã iPhone ã®ãã¼ãã¦ã§ã¢æ å ±ã®åå¾ã¯æ¬¡ã®ããã«ãã¾ãã How to Determine Exactly Which Model of iPhone/iPod Is Running Your App - (NSString *) platform { size_t size; sysctlbyname("hw.machine", NULL, &size, NULL, 0); char *machine = malloc(siz
{{#tags}}- {{label}}
{{/tags}}