iOS7中的客观C iOS设备ID [英] objective C iOS Device ID in iOS7

查看:75
本文介绍了iOS7中的客观C iOS设备ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一下目标C是否可以获取设备的唯一设备ID.在iOS7中不推荐使用"uniqueIdentifier",我尝试使用"identifierForVendor",但是在重新安装该应用程序后,它给了我一个不同的ID.我想在重新安装应用程序后找到稳定的设备ID,甚至更改了iOS.在iOS的早期版本中,我们可以使用MAC地址来实现这一目标.但是现在,在iOS7中,MAC地址不再可用.如何在iOS7中找到iOS设备的稳定设备ID?

I want to ask that whether objective C can obtain a unique device ID of the Device. "uniqueIdentifier" is deprecated in iOS7 and I try to use "identifierForVendor" but it gives me a different ID after the app is re-installed. I want to find a stable device ID after the app is re-install, and even the iOS is changed. In the early version of iOS, we can use MAC address to achieve such goal. But now, in iOS7, the MAC address is no longer available. How can i find a stable device ID of the iOS device in iOS7?

也许使用钥匙串来存储"identifierForVendor"值是一个很好的方法.但是,在重新安装整个iOS之后,它还会一样吗吗?

Maybe using Keychain to store the "identifierForVendor" value is a good approach. But will it still be the same after the whole iOS is re-installed?

推荐答案

iOS不允许您再一次普遍识别设备.这是删除对UDID和Mac地址的访问权限的基本思想. 您需要更改应用程序的设计以适应这些新情况.

iOS does not allow you to identify a device universally anymore. That is the basic idea behind removing access to UDID and Mac address. You need to change the design of your application to adapt to these new circumstances.

这篇关于iOS7中的客观C iOS设备ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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