|
@H_ 874_2@
@H_ 675_40@+ (
NSString
@H_ 675_40@*)getDeviceVersion
@H_ 874_2@
@H_ 675_40@ {
@H_ 874_2@
@H_ 675_40@size_t size;
@H_ 874_2@
@H_ 675_40@sysctlbyname(
"hw.machine"
@H_ 675_40@,
NULL
@H_ 675_40@,&size,
NULL
@H_ 675_40@,0 );
@H_ 874_2@
char
@H_ 675_40@*machine = (
char
@H_ 675_40@*)malloc(siz E);
@H_ 874_2@
@H_ 675_40@sysctlbyname(
"hw.machine"
@H_ 675_40@,machine,0 );
@H_ 874_2@
|
@H_
874_2@
@H_
874_2@
输出:
//@"iPad1,1"
//@"iPad2,51
); font-family:Arial; font-size
:14px; line-height:26px; text-align:left">//@"i386"
逗号后面数字解释:(i386是指模拟器)
1-WiFi版
2-GSM/WCDMA 3G版
3-CDMA版
AppleTV(2G) (AppleTV2,1)
iPad
(iPad1,51); font-family:Arial; font-size:14px; line-height:26px; text-align:left">iPad2,1 (iPad2,1)Wifi版
:rgb(51,2 (iPad2,2)GSM3G版
iPhone
(iPhone1,51); font-family:Arial; font-size:14px; line-height:26px; text-align:left">iPhone3G (iPhone1,2)
iPhone3GS (iPhone2,51
); font-family:Arial; font-size
:14px; line-height:26px; text-align:left">iPhone4 (iPhone3,51
); font-family:Arial; font-size
:14px; line-height:26px; text-align:left">iPhone4(v
z) (iPhone3,3)iPhone4 CDMA版
iPhone4S (iPhone4,51
); font-family:Arial; font-size
:14px; line-height:26px; text-align:left">iPodTouch(1G) (iPod1,51
); font-family:Arial; font-size
:14px; line-height:26px; text-align:left">iPodTouch(2G) (iPod2,51
); font-family:Arial; font-size
:14px; line-height:26px; text-align:left">iPodTouch(3G) (iPod3,51
); font-family:Arial; font-size
:14px; line-height:26px; text-align:left">iPodTouch(4G) (iPod4,51
); font-family:Arial; font-size
:14px; line-height:26px; text-align:left">另外放两个固件
下载
地址:
http://apple.178.com/ios/
http://ipad.sj.91.com/ios/
判断ipad/iphone