Powered By Blogger
Showing posts with label GUID. Show all posts
Showing posts with label GUID. Show all posts

Tuesday, October 30, 2012

how to create UUID in iPhone?

Hi friends,
Here is the example for creating UUID in your iPhone/iPad/iPod Touch application.

            NSString *deviceUuid = nil;
            CFStringRef cfUuid = CFUUIDCreateString(NULL, CFUUIDCreate(NULL));
            deviceUuid = (NSString *)cfUuid;
            NSLog(@"deviceUuid : %@",deviceUuid);
            CFRelease(cfUuid);

Now , you can use this "deviceUuid" as UUID.

Thanks,
Nilesh M. Prajapati