相关疑难解决方法(0)

如何在iPhone上获取IMEI?

我想在iPhone上获取IMEI.我尝试使用以下代码:

#import "Message/NetworkController.h"
NetworkController *ntc=[[NetworkController sharedInstance] autorelease];
NSString *imeistring = [ntc IMEI];
Run Code Online (Sandbox Code Playgroud)

但是找不到NetworkController.

我还发现我可以使用以下方法获得uniqueIdentifier:

UIDevice *myDevice = [UIDevice currentDevice];
NSString *identifier = myDevice.uniqueIdentifier;
Run Code Online (Sandbox Code Playgroud)

但这无法帮助我获得IMEI.

有关如何在iPhone上获取IMEI的任何建议?

iphone objective-c imei ios

21
推荐指数
2
解决办法
7万
查看次数

标签 统计

imei ×1

ios ×1

iphone ×1

objective-c ×1