I want to be able to create a GUID/UUID on the iPhone and iPad.
The intention is to be able to create keys for distributed data that are all unique. Is there a way to do this with the iOS SDK?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Returns the Unique ID of your iPhone.
If you need to create several UUID, just use this method (with ARC):
EDIT: Jan, 29 2014: If you’re targeting iOS 6 or later, you can now use the much simpler method: