Search code examples
iosiphoneimei

How to get IMEI number programmatically in iphone?


Possible Duplicate:
How to get IMEI on iPhone?

How to get imei number from iPhone programmatically?


Solution

  • It have some difficult get the IMEI number programatically. However, if you're looking for a way to identify a particular phone, you can use the UDID (Unique Device Identifier) to do so.

     NSString *UDID = [[UIDevice currentDevice] uniqueIdentifier];
    

    and also try this for IMEI

    NSString *imei = [[NetworkController sharedInstance] IMEI];