区分iPhone 3G和iPhone 3GS

Mat*_*att 4 iphone

是否可以使用[UIDevice currentDevice]的任何属性区分iPhone 3G和iPhone 3G?

Sto*_*bor 5

检查的最佳方法是sysctlbyname("hw.machine", ...)按照 如何判断您的代码是在iPhone还是iPhone3G上运行?

3GS的返回结果应为"iPhone2,1"