In iOS5 Apple has deprecated the use of [UIDevice uniqueIdentifier]
(see here http://techcrunch.com/2011/08/19/apple-ios-5-phasing-out-udid/)
It currently still works, but obviously we want to migrate our app from using it. We can't quit cold turkey, but we are rolling out a migration strategy to persist user data without tying it to the actual physical device (our sole reason for abusing the device UDID).
This Stack Question gives a great alternative to using the UDID. So I have a new UDID to use.
I'm concerned about users who do not bother to upgrade our app, and end up updating their iOS version such that the deprecated call no longer works. Our code assumes the uniqueIdentfier call is guaranteed to always "work."
How can I check that the uniqueIdentifier call was successful, and if it wasn't use the alternative UDID presented in the question referenced above?
Can I check if the UIDevice responds to the selector? Can I check for a nil UDID?