Use identifierForVendor, this unique string is same till you not delete your application from the device.
Swift :
Swift :
var uniqueId = UIDevice.currentDevice().identifierForVendor.UUIDString
println("identifierForVendor : \(uniqueId)")
Objective-C :
NSString *uniqueId = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
Refrence Link :
Comments
Post a Comment