ios用户唯一标识

[UIDevice currentDevice] uniqueIdentifier];  UUID苹果己经禁用

//新的UUID生成,随机生成,用于唯一标识,需要保存

-(NSString*) uuid {

    CFUUIDRef puuid = CFUUIDCreate( kCFAllocatorSystemDefault );

    CFStringRef uuidString = CFUUIDCreateString( nil, puuid );

    NSString * result = (NSString *)CFStringCreateCopy( NULL, uuidString);

    CFRelease(puuid);

    CFRelease(uuidString);

    return [result autorelease];

}


//UUID,ios6.0后支持,随机生成,用于唯一标识,需要保存

[[UIDevice currentDevice] identifierForVendor]

AdSupport.framework 

[[ASIdentifierManager sharedManager] advertisingIdentifier]; 不在设置里修改限制广告跟踪时,唯

ODIN1

通过MAC地址生成的唯一标识

http://code.google.com/p/odinmobile/

你可能感兴趣的:(ios用户唯一标识)