On Dec 22, 2011, at 8:37 AM, 吴明 wrote:

> 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. 


How you should get the number is by asking the user for it. Items #1 and #2 may 
get your app rejected. In fact, #1 is known to cause almost definite app 
rejection. #3 is error prone but if you ask the user to confirm that may be 
acceptable. Also make sure you scour the developer agreement about how you need 
to ask for this kind of information and how you use it. Misuse could get you 
permanently banned.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to