How to generate UUID in ios

后端 未结 7 658
北海茫月
北海茫月 2020-11-30 20:59

How to get a UUID in objective c, like in Java UUID is used to generate unique random numbers which represents 128 bit value.

相关标签:
7条回答
  • 2020-11-30 21:53

    Swift version of Raptor's answer:

    let uuid = NSUUID().UUIDString
    
    0 讨论(0)
提交回复
热议问题