I got one solution
NSString *uid;
uid= [[UIDevice currentDevice] uniqueIdentifier];
NSLog(@"udid is %@",uid);
But it shows me "uniqueIdentifier" is deprecated and it's available in iOS 5. How can I get UDID programmatically for iOS 6?
I got one solution
NSString *uid;
uid= [[UIDevice currentDevice] uniqueIdentifier];
NSLog(@"udid is %@",uid);
But it shows me "uniqueIdentifier" is deprecated and it's available in iOS 5. How can I get UDID programmatically for iOS 6?
UDID is no longer available in iOS 6+ due to security / privacy reasons. Instead, use identifierForVendor or advertisingIdentifier.
here is the link How to get the UDID in iOS 6 and iOS 7