从设备检索序列号
问题描述:
我们如何通过目标C获得设备的序列号?我想从我的应用程序中检索iPod / iPhone / iPad序列号。
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.
答
如果您正在创建一个应用程序, 不提交到App Store,您可以查看 Erica Sadun的UIDevice扩展,其使用 IOKit.framework 。
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]