This post deals with acquiring the iPhone device id programmatically …
Here is the simple code which you need to use
UIDevice *device = [UIDevice currentDevice]; NSString *uniqueIdentifier = [device uniqueIdentifier];
UIDevice *device = [UIDevice currentDevice]; NSString *uniqueIdentifier = [device uniqueIdentifier];
Do you have more great atricels like this one?