I know that a UDID is 40 characters long. Now, Apple forbids their usage and has replaced them with vendor and advertising identifiers for iPhones.
I need to replace them in DB, but I cannot find their length. What is the length of these new identifiers?
The new identifiers (identifierForVendor and advertisingIdentifier) are 36 characters long.
The previous method, uniqueIdentifier, returns an NSString, while both of the new methods return type NSUUID. This class conforms the the standard definition of a UUID, and is 32 characters long with 4 dashes.
Universally Unique Identifier - Definition
A valid UUID could come with or without the dashes, but the documentation for the NSUUID class clearly states that it does include the dashes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With