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
  • 6,115
  • 16
  • 50
  • 57
Atma
  • 29,141
  • 56
  • 198
  • 299

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