Tutorial :iPhone API get local device phone number [duplicate]



Question:

This question already has an answer here:

Does anyone know how I can get the phone number of the device I am developing on so that I may use it in my app?


Solution:1

Here you can find how to get the iphone sim number as string

http://blog.timeister.com/2009/06/25/objective-c-get-iphone-number/

code:

NSString *num = [[NSUserDefaults standardUserDefaults] stringForKey:@”SBFormattedPhoneNumber”]; NSLog(@”Phone Number: %@”, num);

Adrian


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »