使用 iPhone 代码的 IMEI 号码

发布于 2024-08-24 22:12:04 字数 206 浏览 4 评论 0原文

可能的重复:
如何在 iPhone 上获取 IMEI?

如何从 iPhone 模拟器获取 IMEI 代码?

Possible Duplicate:
How to get IMEI on iPhone?

how can i get IMEI code from iphone simulator?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

漫漫岁月 2024-08-31 22:12:04

你不能。这不是 iPhone SDK 可以做到的事情。

您可以获取 iPhone/iPod 的唯一设备标识符 (UDID),但不能获取 IMEI、序列号或电话号码。

You can't. It's not something you can do with the iPhone SDK.

You can get the iPhone/iPod's Unique Device Identifier (UDID), but not the IMEI, Serial or phone number.

不必你懂 2024-08-31 22:12:04

正如其他人所说 - 您无法通过公共 API 获取 IMEI。如果您想获取一些设备标识符以在应用程序中使用,则必须使用 UIDevice 类中定义的 uniqueIdentifier 属性 - 它正是用于此目的。

NSString* uniqueID = [UIDevice currentDevice].uniqueIdentifier;

仅供参考,您可以使用私有框架获取 IMEI - 请参阅此问题,但是您的应用程序将被应用程序商店拒绝。

As others stated - you cannot get IMEI through public API. If you want to obtain some device identifier to use in your application you must use uniqueIdentifier property defined in UIDevice class - it is there for exactly that purpose.

NSString* uniqueID = [UIDevice currentDevice].uniqueIdentifier;

FYI, you can obtain IMEI using private frameworks - see this question, but your app will be rejected from app store then.

浅笑依然 2024-08-31 22:12:04

IMEI 是每部手机的硬件代码。您可以输入:*#06* 来获取手机的 IMEI。
iPhone 模拟器中没有 IMEI。

IMEI is an HW code of each phone. You can get phones' IMEI typing: *#06*.
In iPhone simulator there is no IMEI.

甜妞爱困 2024-08-31 22:12:04

我不确定这是否可能 - 除此之外,如果你在 AppStore 上发布这样做的软件,苹果会抱怨......

I'm not sure that it's possible - besides which, Apple will moan if you publish software which does that on the AppStore...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文