iOS唯一标识(UUID+钥匙串)

原理:程序启动时将UUID存入钥匙串,取得时候取出钥匙串中的UUID

1.使用KeychainItemWrapper
链接:http://www.jianshu.com/p/2741f0124cd3
2.使用钥匙串存储
http://www.jianshu.com/p/f8f380cb06cb
http://www.jianshu.com/p/9188235eedab
3.自己封装了下
https://github.com/WuJiForFantasy/WJKeyChain

注意:如果更新了provisioning profile的话, Keychain data会丢失.所以我们应该将UUID在NSUserDefault
备份.

你可能感兴趣的:(iOS唯一标识(UUID+钥匙串))