IMEI number using iphone code [duplicate]

浪子不回头ぞ 提交于 2020-01-06 08:39:16

问题


Possible Duplicate:
How to get IMEI on iPhone?

how can i get IMEI code from iphone simulator?


回答1:


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.




回答2:


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.




回答3:


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




回答4:


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



来源:https://stackoverflow.com/questions/2453415/imei-number-using-iphone-code

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