从设备检索序列号 [英] Retrieving the serial number from the device

查看:147
本文介绍了从设备检索序列号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何通过目标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]

这篇关于从设备检索序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆