iOS 获取UUID

-(NSString*)GetUUID

{

    CFUUIDRef puuid = CFUUIDCreate( nil );

    CFStringRef uuidString = CFUUIDCreateString( nil, puuid );

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

    CFRelease(puuid);

    CFRelease(uuidString);

    return result;

}

posted @ 2013-11-26 21:47  韦韦韦  阅读(210)  评论(0编辑  收藏  举报