ios用户唯一标识

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

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

 

-(NSString*) uuid {

    CFUUIDRef puuid = CFUUIDCreatekCFAllocatorSystemDefault );

    CFStringRef uuidString = CFUUIDCreateStringnil, puuid );

    NSString * result = (NSString *)CFStringCreateCopyNULL, uuidString);

    CFRelease(puuid);

    CFRelease(uuidString);

    return [result autorelease];

}

 

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

[[UIDevice currentDeviceidentifierForVendor]

AdSupport.framework 

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

ODIN1

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

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

posted @ 2013-05-06 11:51  我的程序人生  阅读(1158)  评论(0编辑  收藏  举报