gpt4 book ai didi

ios - iOS 的设备标识符ForVendor UUID 会一直相同吗?

转载 作者:行者123 更新时间:2023-12-01 17:30:06 25 4
gpt4 key购买 nike

if ([[UIDevice currentDevice] respondsToSelector:@selector(identifierForVendor)]) {
return [[[UIDevice currentDevice] identifierForVendor] UUIDString];
}

这会改变吗?我原本想使用 MAC 地址,但显然 7+ 并没有返回它。我已经从我正在开发的开发应用程序中调用它,并阅读它是使用捆绑 ID 计算的。

发布应用商店后,这会永远保持一致吗?

最佳答案

来自 UIDevice class reference :

The value in this property remains the same while the app (or another app from the same vendor) is installed on the iOS device. The value changes when the user deletes all of that vendor’s apps from the device and subsequently reinstalls one or more of them. The value can also change when installing test builds using Xcode or when installing an app on a device using ad-hoc distribution. Therefore, if your app stores the value of this property anywhere, you should gracefully handle situations where the identifier changes.

关于ios - iOS 的设备标识符ForVendor UUID 会一直相同吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29232726/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com