I was wondering if it was possible to find out the UDID of the user's iPhone. Can someone shed some light?
Note: Apple will no longer accept apps that access the UDID of a device starting May 1, 2013.
Instead, you must use the new methods identifierForVendor and advertisingIdentifier in iOS 6+ for accessing this. See related post here for more detail.
identifierForVendor
advertisingIdentifier
Old way (deprecated and will result in App Store rejection)
NSString *udid = [[UIDevice currentDevice] uniqueIdentifier];
As of iOS7, the uniqueIdentifier property is no longer available.
uniqueIdentifier
See the UIDevice reference.
UIDevice
2.1m questions
2.1m answers
60 comments
57.0k users