Is possible to discover the iOS device identifier, using Xcode. I need to each app downloaded have a unique identifier. I thought in generate random numbers, but they might generate the same number more than once! Anyone have an idea?
Share
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.
I’ve found a pretty simple way to do this, here’s how:
Press COMMAND + N and select
Cocoa Touch Class.Name your class
NSString+UUIDand hit next.Then, replace the code in
NSString+UUID.hwith:And in
NSString+UUID.mwith:Now, when you need to get the UUID (i.e: store it using NSUserDefaults when your app loads):