菜鸟教程小白 发表于 2022-12-12 09:47:05

ios - iOS上基于时间的UUID(版本1)?


                                            <p><p>我们如何使用 iOS 创建 RFC 4122 投诉 UUID(版本 1,基于时间)?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>这里是 <a href="https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/uuid_generate_time.3.html" rel="noreferrer noopener nofollow">man page</a> <code>CFUUID</code> 和 <code>NSUUID</code> 使用的底层库。它包含基于时间的创建功能:</p>
<pre><code>#include &lt;uuid/uuid.h&gt;

uuid_generate_time(uuid_t);
</code></pre>
<p>它也包含在 iOS 中。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - iOS上基于时间的UUID(版本1)?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/15501914/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/15501914/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - iOS上基于时间的UUID(版本1)?