Objective c 中获取GUID
时间:2010-09-26 来源:黄锦
+ (NSString*) stringWithUUID
{
CFUUIDRefuuidObj = CFUUIDCreate(nil);//create a new UUID
//get the string representation of the UUID
NSString*uuidString = (NSString*)CFUUIDCreateString(nil, uuidObj);
CFRelease(uuidObj);
return [uuidString autorelease];
}
相关阅读 更多 +