Tushar Maru
Tushar Maru

Reputation: 3425

How can I get unique number of device or iPad in iOS 7?

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

Answers (3)

Nirmalsinh Rathod
Nirmalsinh Rathod

Reputation: 5186

[[[UIDevice currentDevice] identifierForVendor] UUIDString]

Its available 6.0 and above os version.

Upvotes: 0

Tim
Tim

Reputation: 14446

See -[UIDevice identifierForVendor].

Upvotes: 0

Maulik
Maulik

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

Related Questions