How to get a UUID in objective c, like in Java UUID is used to generate unique random numbers which represents 128 bit value.
Swift version of Raptor's answer:
let uuid = NSUUID().UUIDString