iOS获取设备UUID

作者: vision_colion | 来源:发表于2016-11-15 14:14 被阅读128次
/** 
  *  生成uuid *
  *  @return <#return value description#> 
  */
-  (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获取设备UUID

    本文链接:https://www.haomeiwen.com/subject/ndzkpttx.html