Retrieving the serial number from the device

不羁岁月 提交于 2019-12-29 00:07:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!