2

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?

Kara
  • 5,996
  • 16
  • 49
  • 56
Atma
  • 27,485
  • 52
  • 188
  • 288

1 Answers1

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