问题
How do we get the serial number of the device through objective C? I want to retrieve the iPod/iPhone/iPad serial number from within my application.
回答1:
If you are creating an application that will not be submitted to the App Store you can check out Erica Sadun's UIDevice Extensions which uses IOKit.framework.
[[UIDevice currentDevice] serialnumber]
来源:https://stackoverflow.com/questions/7127614/retrieving-the-serial-number-from-the-device