objective c - How to get IMEI on iPhone? -
I want to get an iPhone on IMEI I try to use the following code:
< Code> #import "Message / Network Controller." Network Controller * ntc = [[Network Controller Shared Instance] AutoWrite]; NSString * imeistring = [NTC IMEI];
But network controller is not found.
I also know that I can use a unique identifier:
uidis * myDevice = [uidwise current device]; NSString * identifier = myDevice.uniqueIdentifier; But it can not help me get the IMEI.
How to get IMEI on the iPhone?
I found that Erica posted header file "Message / Network Controller H" to Ericus Dot. was. (It has now been removed)
I have created a header file, copy it and paste the NetworkController.h file and add the private project "Message.framework" to my project, the header I created Import the file
Now I can use the original method found to get the imei number.
NetworkController * ntc = [NetworkController Shared Instance]; NSString * imeistring = [NTC IMEI]; [edit] Now does not work. The app will be rejected instead you have to use UDID. See the post below.
Comments
Post a Comment