• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re:Re: How to get the phone number use ios sdk in iphone.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:Re: How to get the phone number use ios sdk in iphone.


  • Subject: Re:Re: How to get the phone number use ios sdk in iphone.
  • From: 吴明 <email@hidden>
  • Date: Thu, 22 Dec 2011 23:37:24 +0800 (CST)

Thanks
I got some of the way by Google.
1.
[[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"];


2.
Use CTSettingCopyMyPhoneNumber();
This function is included in Coretelephony framework.


3.
Get all contacts phone number by addressbook framework. Then get the phone number.


I don't know whether these  ways are feasible.

在 2011-12-22 17:42:44,"Kyle Sluder" <email@hidden> 写道:
>2011/12/22 吴明 <email@hidden>:
>> How to get the phone number use ios sdk in iPhone.?
>
>Not gonna happen. iOS does not allow you to access this information.
>
>--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to get the phone number use ios sdk in iphone.
      • From: 吴明 <email@hidden>
    • Re: How to get the phone number use ios sdk in iphone.
      • From: Keary Suska <email@hidden>
References: 
 >Re: How to get the phone number use ios sdk in iphone. (From: Kyle Sluder <email@hidden>)
 >How to get the phone number use ios sdk in iphone. (From: 吴明 <email@hidden>)

  • Prev by Date: Re: Debugging hints
  • Next by Date: Re: NSString looses Umlaute
  • Previous by thread: Re: How to get the phone number use ios sdk in iphone.
  • Next by thread: Re: How to get the phone number use ios sdk in iphone.
  • Index(es):
    • Date
    • Thread