Friday, December 20, 2013

iphone can get the current cell phone cell phone number through the function

iphone can get the current cell phone number through a phone function, please Daren advice
Reply:
You can use the following function returns the user's phone number: extern NSString * CTSettingCopyMyPhoneNumber (); then calls can be. Since this function is included in CoreTelephony, so can only be used for non-official iPhone SDK.


You can use the following function returns the user's phone number:



extern NSString * CTSettingCopyMyPhoneNumber ();



Then you can call.



Since this function is included in CoreTelephony, so can only be used for non-official iPhone SDK.

Reply:
Unofficial can not do it official!
Reply:
And it was the job is parallel phone
Reply:
Yin said that there should be more of it too
Reply:
First collection, and later may be used, mark!
Reply:
The phone number can be obtained if the user sets:
[[NSUserDefaults standardUserDefaults] valueForKey: @ "SBFormattedPhoneNumber"];
Reply:
reference to the 6th floor klinsmann82522 reply:
phone number if the user sets can be obtained:
[[NSUserDefaults standardUserDefaults] valueForKey: @ "SBFormattedPhoneNumber"];


Has been very confused, so the string @ "SBFormattedPhoneNumber" similar to what is generally defined? Where can I find it?
How can be found in the official SDK does not?
Reply:
If you can get this official SDK, and will not be regarded as a private function, and finding out that Apple is not to be used in commercial software.
Reply:
extern NSString * CTSettingCopyMyPhoneNumber ();
Is possible
Reply:
Apple is the siege ah ~ ~ ~ ~

No comments:

Post a Comment