24/7 twenty-four seven

iOS/OS X application programing topics.

2009-10-07から1日間の記事一覧

iPhone 3Gと3GSやiPod touchの世代を判別する方法 (2)

iPhone 3Gと3GSやiPod touchの世代を判別する方法 - 24/7 twenty-four seven以前にiPhoneやiPod touchのモデルを区別する方法として、sysctlbyname()関数を使う方法を紹介しましたが、モデル番号だけならuname()を使う方が簡単でした。 #import <sys/utsname.h> - (void)app</sys/utsname.h>…