如何找到iphone型号的代码

时间:2009-10-25 06:51:34

标签: iphone

通过代码模拟iphone的号码

1 个答案:

答案 0 :(得分:3)

UIDevice *myCurrentDevice = [UIDevice currentDevice];  

NSLog(@"%@", [myCurrentDevice model]);
NSLog(@"%@", [myCurrentDevice systemName]);
NSLog(@"%@", [myCurrentDevice systemVersion]);

//结果

iPhone
iPhone OS
3.1.2