Search code examples
objective-cios5udid

How to get old UDID in my new upgraded app


I am using UDID to save and retrieve data from remote DB, now apple had depreciated the UDID. Now how can I retrieve already saved data if I update my app with new version which developed using iOS5.


Solution

  • You can not, unless you saved the UDID some where, like the NSUserDefaults.

    Apple does not allow apps to use the [UIDevice uniqueIdentifier] method any more. If this is used in your code Apple will reject the app.