If i restore or reset an iphone/ipod/ipad, does the uniqueIdentifier stays the same or does it change?
[[UIDevice currentDevice] uniqueIdentifier]
It stays the same. The unique identifier (also known as UDID) identifies the hardware, not the software.