ios - swift 2.2 中的不同 UUID

标签 ios swift uuid uniqueidentifier

在 Swift 2.2 之前,每次打开应用程序时 UUID 值都是相同的,现在每次打开时都会更改

我使用这段代码:

UIDevice.currentDevice().identifierForVendor!.UUIDString

我现在如何识别用户?

最佳答案

每次您删除应用程序时,UUID 都可能会更改。 如果您只是关闭并打开应用程序,它应该是一样的。 但是,如果您删除该应用程序(或通过 xcode 重新安装),它可能会发生变化。

关于ios - swift 2.2 中的不同 UUID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36234793/

相关文章:

ios - 使用参数生成 NSString 时在 Release模式下崩溃

当涉及泛型时,Swift 找不到重载

ios - 使用popViewController自定义过渡时如何防止键盘关闭

ios - 如何从 iOS 设备获取唯一标识?

bash - 如何在shell脚本中生成uuid

ios - 从Estimote iBeacon的UUID获得专业和副修

ios - 录制时静音音频 AVAssetWriterInput

iphone - 尝试转到保存的照片时 UIImagePickerViewController 崩溃(在 iPhone 上)

ios - 将 “iCloud containers” 权利添加到您的 App ID

xcode - 快速 UITableView 设置 rowHeight