objc :
+ (NSString *) createUUID
{
NSString *uuid = [[NSUUID UUID] UUIDString];
return uuid;
}
//output : 61237D34-C6ED-4AA7-8151-A42053C953B4
swift :
UUID.init().uuidString
출처
https://stackoverflow.com/questions/14352418/how-to-generate-uuid-in-ios/14352436