我想在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的任何建议?