iOS 开发中 idfa idfv uuid



NSString *idfa= [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];



NSString *idfv = [[[UIDevice currentDevice] identifierForVendor] UUIDString];



-(NSString*) uuid {
     CFUUIDRef puuid = CFUUIDCreate( nil );
     CFStringRef uuidString = CFUUIDCreateString( nil, puuid );
     NSString * result = (NSString *)CFBridgingRelease(CFStringCreateCopy( NULL, uuidString));
     CFRelease(puuid);
     CFRelease(uuidString);
     return result;
}


你可能感兴趣的:(iOS 开发中 idfa idfv uuid)