Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do iPhone's have a unique code that identifies them?

Tags:

iphone

Do iPhone's have a unique code that identifies them? Can this be accessed via Cocoa? Something like a serial number that is unique?

like image 524
Petras Avatar asked Mar 22 '26 20:03

Petras


2 Answers

Every iPhone has an UID number. You can get it by calling:

[[UIDevice currentDevice] uniqueIdentifier]
like image 174
Nevin Avatar answered Mar 25 '26 10:03

Nevin


Take a look at the UIDevice Class Reference.

like image 31
David Avatar answered Mar 25 '26 11:03

David



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!