首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > objc-guid

objc-guid

  • 资源大小:2.62 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

A straight forward and fast type-safe Guid/UUID class for Objective C. GUID generation is accurate (it uses CFUUIDCreate). Never use inefficient and type-unsafe strings for GUIDs again! Obj-guid uses ARC so that needs to enabled in Xcode/llvm. ``` // Parse a GUID from string Guid* guidFromString = [[Guid alloc] initWithString:@"21EC2020-3AEA-1069-A2DD-08002B30309D"]; // Create a random GUID Guid* randomGuid = [Guid randomGuid]; // Convert a GUID to a string NSString* guidString = [randomGuid stringValueWithFormat: GuidFormatDashed]; ``` Browse the header: Guid.h Browse the source: Guid.m Download the latest release

文 件 列 表

Guid.h
Guid.m

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP