0%
每次启动APP都会变更
1
| NSString *uuid = [[NSUUID UUID] UUIDString]
|
每次安装APP都会变更
1
| NSString *idfv = [[UIDevice currentDevice].identifierForVendor UUIDString];
|
跟随广告设置,新启动和新安装都不会变更
1 2 3
| #import <AdSupport/ASIdentifierManager.h> ASIdentifierManager *asIM = [[ASIdentifierManager alloc] init]; NSString *idfa = [asIM.advertisingIdentifier UUIDString];
|