如何通过代码查找iPhone/iPod设备型号(3G、3GS、4、4S)?
我尝试过获取当前设备型号名称,如 3G、3GS、4、4S、iPodTouch(不同代)。但是,到目前为止我还无法得到确切的结果。您能帮我查一下设备型号吗?在这里,我附上了用于获取设备模型的代码。
UIDevice *device = [UIDevice currentDevice];
NSString *deviceVersion = [device systemVersion];//Return 4.0.1 and 5.0.1
NSString *deviceName = [device systemName];//Return iPhone, iPod Touch
如何获取设备型号 3G、3GS、4、4S、iPod Touch、iPad?
Possible Duplicate:
Determine device (iPhone, iPod Touch) with iOS
I have tried to get the current device model name like 3G,3GS,4,4S,iPodTouch (Different Generations). But, I can't get an exact result till now. Can you please help me to find out the device model? Here I have attached my code that I used to get device model.
UIDevice *device = [UIDevice currentDevice];
NSString *deviceVersion = [device systemVersion];//Return 4.0.1 and 5.0.1
NSString *deviceName = [device systemName];//Return iPhone, iPod Touch
How can I get the device model 3G,3GS,4,4S,iPod Touch,iPad?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
结果应该是:
The result should be: