Is there any way to get own phone number by standard APIs from iPhone SDK?
No, you can't see what apps have access to your phone number by doing that. Unless "Contacts" counts as your phone number.
If you are dialing a number that is not saved in your contacts and would like to add the prefix after typing out the number, you can do so by tapping right before the number. A cursor should appear. From there, hold down "0" and it will populate a "+" symbol add you can then add the desired prefix.
Go to appleid.apple.com and sign in. In the Sign-In and Security section, click Apple ID. Enter the mobile phone number that you want to use as your Apple ID, then select Change Apple ID. A verification code is sent to you at that number.
At the risk of getting negative marks, I want to suggest that the highest ranking solution (currently the first response) violates the latest SDK Agreement as of Nov 5, 2009. Our application was just rejected for using it. Here's the response from Apple:
"For security reasons, iPhone OS restricts an application (including its preferences and data) to a unique location in the file system. This restriction is part of the security feature known as the application's "sandbox." The sandbox is a set of fine-grained controls limiting an application's access to files, preferences, network resources, hardware, and so on."
The device's phone number is not available within your application's container. You will need to revise your application to read only within your directory container and resubmit your binary to iTunes Connect in order for your application to be reconsidered for the App Store.
This was a real disappointment since we wanted to spare the user having to enter their own phone number.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With