I am developing an application with external databases. For this motive, I have to save an uuid the only identifier for every user who registers. This way, it will differ if the user is a new user or is a user already registered in the application.
I create a new uuid with this:
NSUUID *uuid = [NSUUID UUID];
And i save that at external databases with the username. How do I obtain this information when the user enter again to the application? Have I to save it in some place of the device?
For one, you could could use
NSUserDefaultsTo cache uuid:
To retrieve uuid:
Note that using the
NSUUIDclass restricts you to an iOS target of iOS 6.0+. There are other ways to generate a UUID < iOS 6.0, e.g.