iOS 5改变了uniqueIdentifier代码? [英] The iOS 5 changed the uniqueIdentifier code?

查看:125
本文介绍了iOS 5改变了uniqueIdentifier代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

功能

[[UIDevice currentDevice] uniqueIdentifier]

在iOS 5中已弃用,我使用MAC地址在此项目中找到了解决方案: https://github.com/gekitz/UIDevice-with-UniqueIdentifier-for-iOS-5

Is deprecated in iOS 5 and I found the solution in this project using the MAC address: https://github.com/gekitz/UIDevice-with-UniqueIdentifier-for-iOS-5

好的,它已经解决了。但现在我发现iOS 5 已更改 uniqueIdentifier 返回的代码格式。

Ok, it is solved. But now I discovery that iOS 5 CHANGED the format of code that uniqueIdentifier return.

在iOS 4.x中采用以下格式:

In iOS 4.x it is in this format:

93F38DEB-3C0B-5C09-B746-0DFDFDDB297C

现在是iOS 5,同样的函数以这种格式返回:

Now the iOS 5, the same function return in this format:

93f38deB3c0b5c09b7460dfdfddb297c

任何人都知道代码是否发生了变化?它的不同之处仅在于同一设备的格式或代码是否真的不同?

Anyone know if the code changed at all? It is different only is format or the code in really different for the same device?

推荐答案

代码已更改!! !!!

UniqueIdentifier不再是独一无二!!!

UniqueIdentifier is no more UNIQUE!!!

第一种格式有36种hexa lenght

The first format have 36 hexa lenght

93F38DEB-3C0B-5C09-B746-0DFDFDDB297C

93F38DEB-3C0B-5C09-B746-0DFDFDDB297C

第二个有40个六分! !

The second have 40 hexa!!!!!

因为这个,它改变了。我不知道它是否会将更多的六进制附加到标识符,但更大的大小会改变所有。

Because this, it changed. I don't know if it append more hexa to identifier, but the bigger size changed al all.

这篇关于iOS 5改变了uniqueIdentifier代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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