IPhone Mobile Phone Number

Can I get a mobile phone number (CLI number) in Objective-C on iPhone from his SIM card?

+4
source share
2 answers

Not with official SDK. You can ask the user to specify their own contact record using AddressBookUI card collectors or the user interface of your own design.

+5
source

You can get the user's phone number from NSUserDefaults. And then find their address book.

This method is completely undocumented and can break down in a matter of moments.

It is also fragile - the user may have a bad address book with the same #, which is used several times, etc.

+3
source

Source: https://habr.com/ru/post/1277377/


All Articles