2

Previous answers to the question of how to get the phone number involved using NSUserDefaults and SBFormattedPhoneNumber, but apparently this doesn't work anymore since iOS 4.

So I'm looking for alternative solutions, I've seen mention of using IOKit but can't find any details.

Does anybody know a reliable way to get the phone number (and by reliable I don't mean the hack to try and search the contacts for the owner's contact info).

P.S. I am already aware that the app will be rejected by Apple: but this is not for an App Store app.

Cœur
  • 32,421
  • 21
  • 173
  • 232
Gruntcakes
  • 36,166
  • 41
  • 170
  • 346

1 Answers1

4

There is not a way to do this. You can see from these questions:

You can however get a contact's phone number. You can figure out how to do this from here.

Cœur
  • 32,421
  • 21
  • 173
  • 232
pasawaya
  • 11,364
  • 7
  • 50
  • 92