公告
财富商城
积分规则
提问
发文
2019-09-06 07:38发布
Luminary・发光体
Possible Duplicate: How to get IMEI on iPhone?
how can i get IMEI code from iphone simulator?
IMEI is an HW code of each phone. You can get phones' IMEI typing: *#06*. In iPhone simulator there is no 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.
uniqueIdentifier
UIDevice
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.
I'm not sure that it's possible - besides which, Apple will moan if you publish software which does that on the AppStore...
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.
最多设置5个标签!
IMEI is an HW code of each phone. You can get phones' IMEI typing: *#06*. In iPhone simulator there is no 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 inUIDevice
class - it is there for exactly that purpose.FYI, you can obtain IMEI using private frameworks - see this question, but your app will be rejected from app store then.
I'm not sure that it's possible - besides which, Apple will moan if you publish software which does that on the AppStore...
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.