How can we create a RFC 4122 complaint UUID (version 1, time-based) with iOS?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Here's the man page of the underlying library used by CFUUID
and NSUUID
. It contains the time based creation function:
#include <uuid/uuid.h>
uuid_generate_time(uuid_t);
It's contained in iOS as well.