检测IOS设备类型 [英] To detect IOS device type

查看:92
本文介绍了检测IOS设备类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从这里找到了解决方案:
确定设备(iPhone,iPod Touch)和iPhone SDK

I have found the solutions from here: Determine device (iPhone, iPod Touch) with iPhone SDK

从链接中,它建议使用库 https://gist.github.com/1323251

From the link, it suggests to use the library https://gist.github.com/1323251

但显然这个库已经过时了。我在列表中找不到iPhone 5和新iPad等。

But obviously the library is quite outdated. I couldn't find the iPhone 5 and new iPad and etc in the list.

有谁知道如何找到已完成和更新的列表?

Does anyone know how can I find the completed and updated list?

非常感谢你。

推荐答案

这是更新后的版本 https://gist.github.com/1323251
我会在新设备发布时保持更新。

Here's the updated version of https://gist.github.com/1323251 . I'll keep it updated when new devices are released.

https ://github.com/froztbytes/UIDeviceHardware

这篇关于检测IOS设备类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆