IOS生成UUID
2024-08-25 22:28:21
/**
* 生成GUID
*/
+ (NSString *)generateUuidString{
// create a new UUID which you own
CFUUIDRef uuid = CFUUIDCreate(kCFAllocatorDefault); // create a new CFStringRef (toll-free bridged to NSString)
// that you own
NSString *uuidString = (NSString *)CFUUIDCreateString(kCFAllocatorDefault, uuid); // transfer ownership of the string
// to the autorelease pool
[uuidString autorelease]; // release the UUID
CFRelease(uuid); return uuidString;
}
@end
最新文章
- opencv6.1-imgproc图像处理模块之平滑与形态学操作
- H5页面性能优化
- C# 类型基础——你可能忽略的技术细节
- MSP430F149学习之路——PWM信号
- SQL Server 锁表、查询被锁表、解锁相关语句
- hdu1050(贪心)
- zoj 2027 Travelling Fee
- (转载)OC学习篇之---概述
- 【转】cocos2d-x获取系统时间——2013-08-25 10
- bzoj1148
- in与exist , not in与not exist 的区别(转)
- Integer比较
- 对比AutoResetEvent和ManualResetEvent
- mui开发app之js将base64转图片文件
- 384. Shuffle an Array数组洗牌
- Java程序员必须掌握的常用Linux命令。
- 10大H5前端框架 ......>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;>;
- 微信小程序学习之for循环
- Android 模糊效果 FastBlur
- vue 项目搭建笔记1