0

Possible Duplicate:
Programmatically get own phone number in iPhone OS

I am developing an iOS 4.1 application that need to get the phone number of the user. I have tried the blow code to get the phone number. But it is not working.

NSString *num = [[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"];

is there any way to get the phone number in iOS 4.1 ?

Thanks, Shinto

Community
  • 1
  • 1
shinto Joseph
  • 1,039
  • 3
  • 16
  • 27

1 Answers1

0

In short there is no approved way to do this.

This is a duplicate question see Programmatically get own phone number in iOS for more info.

Community
  • 1
  • 1
odyth
  • 4,324
  • 3
  • 37
  • 45