-2

I am writing an IOS application in Swift (XCode 6) for iPhones and I need to get the telephone number assigned to the telephone running the app.

Searches have not found an answer. Any thoughts?

Don Hall
  • 145
  • 1
  • 1
  • 5
  • 4
    I hope you can't do it, is my thought. – matt May 11 '15 at 21:52
  • 1
    I'm not sure you'll be able to. Apple tends to make it difficult to obtain a device's phone number due to security concerns. Consider [this](http://stackoverflow.com/questions/193182/programmatically-get-own-phone-number-in-ios) question or possibly [this](http://stackoverflow.com/questions/4644145/get-the-devices-phone-number-programmatically?lq=1) extension of that question for more info. – ebwb May 11 '15 at 21:56

1 Answers1

0

There is no public API to get the telephone number of the iPhone programmatically.

Trident
  • 810
  • 9
  • 20