Identifier for vendor
suggest changeOne line reads the vendor identifier. This is not the old device UDID. The Swift call is Swift 2 (currentDevice(), UUIDString). Swift 3 uses UIDevice.current.identifierForVendor?.uuidString.
Swift
let UDIDString = UIDevice.currentDevice().identifierForVendor?.UUIDString
Objective-C
NSString *UDIDString = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
identifierForVendor is a unique identifier that stays the same for every app of one vendor on one device, unless the user deletes all of that vendor’s apps from the device. See Apple’s documentation about when this UUID changes.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents