Possible Duplicate:
iOS unique user identifier
For my application I need the phones uuid.
I know that I can get it with
NSUUID *uuid = [NSUUID UUID];
But everytime I restart the app, I receive a different value. So I cant use it like the old uuid (which was always the same).
What can I do to receive a stable and unique identifier?
You are thinking of the UDID (not UUID), which is deprecated and no longer allowed on the App Store.
Here’s a technique to simulate it: https://stackoverflow.com/a/8677177/832111