问题
I want to get my own contact number for my app.
I have read some answers on the stack overflow but those were old.
So please let me know according to new guidelines of Apple, can we get mobile number?
回答1:
The phone number is not accessible from any Apple public API which means you can't get it.
回答2:
The mobile number cannot be accessed without using any private API using which would lead to app rejection. link
回答3:
This is not possible to get phone number of the device
Refer this link
Programmatically get own phone number in iOS
Get the device's phone number programmatically
来源:https://stackoverflow.com/questions/40719247/how-to-get-own-mobile-number-from-the-ios-device-programmatically