How to get a UUID in objective c, like in Java UUID is used to generate unique random numbers which represents 128 bit value.
you can use CFUUID for iOS 5 or lower version and NSUUID for iOS 6 and 7. for making it more secure you can store your UUID in keychain