问题
Am I able to get the user's mobile number of the iPhone device? (of cause without asking the user for this information)
回答1:
No. Apple's APIs do not provide access to this information. What's more, attempting to get this information without asking the user is generally considered a huge breach of privacy.
回答2:
You could try to look it up in the address book if you know who the user is. Otherwise, yeah, the easiest thing to do is ask the user to enter it and store it as a preference.
来源:https://stackoverflow.com/questions/4129966/get-mobile-number-from-iphone