Reputation: 3425
As apple not supported to get the real UDID from iOS 7. I need any unique ID of the device that needs to be same every time of that particular iPad or device.
Is there any other way to get the unique number of that particular device and that should not be change any time. So we can use to identify the device in the code.
Thanks in advance!
Upvotes: 0
Views: 981
Reputation: 5186
[[[UIDevice currentDevice] identifierForVendor] UUIDString]
Its available 6.0 and above os version.
Upvotes: 0
Reputation: 19418
Use the identifierForVendor
property or the advertisingIdentifier
property of the ASIdentifierManager class instead. Or use the UUID
method of the NSUUID class to create a UUID
and write it to the user defaults database.
For example :https://stackoverflow.com/a/19676017/616094
Upvotes: 1