0

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?

Brian
  • 14,610
  • 7
  • 35
  • 43
user2239835
  • 75
  • 2
  • 7

1 Answers1

2

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

Community
  • 1
  • 1
Rajneesh071
  • 30,846
  • 15
  • 61
  • 74