Tuesday, March 14, 2017

How to get the UUID in iOS


To get the UUID in iOS use the following code:

NSString *UUID = [[NSUUID UUID] UUIDString]; 
NSLog(@"UUID is : %@", UUID); 

The format should be something like 9063E103-1F1C-4220-818B-CB9FC94536D5

No comments: