In iOS 5 – method UIDevice currentDevice uniqueIdentifier as __OSX_AVAILABLE_BUT_DEPRECATED.
So i have found another solution
Try https://github.com/hiren443/UIDevice-with-UniqueIdentifier-for-iOS-5. It provides two methods, one which is a global UDID that uses the MAC address of the device, and hashes it. The other is an app specific id which uses the MAC address + bundle identifier of the app to generate a hashed UID for the app. I have tried both and they work like a charm. Try-
[[UIDevice currentDevice] uniqueGlobalDeviceIdentifier] //for the global identifier
OR
[[UIDevice currentDevice] uniqueDeviceIdentifier]
So i have found another solution
Try https://github.com/hiren443/UIDevice-with-UniqueIdentifier-for-iOS-5. It provides two methods, one which is a global UDID that uses the MAC address of the device, and hashes it. The other is an app specific id which uses the MAC address + bundle identifier of the app to generate a hashed UID for the app. I have tried both and they work like a charm. Try-
[[UIDevice currentDevice] uniqueGlobalDeviceIdentifier] //for the global identifier
OR
[[UIDevice currentDevice] uniqueDeviceIdentifier]
No comments:
Post a Comment