tags:

views:

69

answers:

1

hi friends..

can anyone tell me the structure of UDID of a iphone . I want to use the UDID to identify each user saperately in my app. The UDID seems to be a 40 digit string . In my app i dont want to use such a big ID. Can any one tell me the structure of the UDID so that i can cut short and make out a small unique string from UDID....

+2  A: 

From the documentation:

A unique device identifier is a hash value composed from various hardware identifiers such as the device’s serial number.

I wouldn't recommend changing it, as then you aren't guaranteed any uniqueness. There isn't a structure to it such that you can ignore characters; it's a hash. Do you have a good reason for preferring fewer than 40 characters?

Jeff Kelley
Thanks jeff for your comments... i will try using the whole UDID then...
jeff is the serial number unique for an iphone ?. how can i get the serial number of iphone programmatically....?
post separate question if you want to ask something new.. but first, search for the answer before you ask a question here buddy. a single search will tell you how to get UDID programmatically - [[UIDevice currentDevice] uniqueIdentifier]; ... still read the related discussion in different questions regarding UDID so that you don't use it in wrong way...
lukya