开发者

How to auto populate phone number from iphone? [duplicate]

开发者 https://www.devze.com 2023-02-05 11:34 出处:网络
This question already has answers here: Closed 10 years ago. 开发者_开发知识库 Possible Duplicate:
This question already has answers here: Closed 10 years ago. 开发者_开发知识库

Possible Duplicate:

Programmatically get own phone number in iPhone OS

I am developing an iOS 4.1 application that need to get the phone number of the user. I have tried the blow code to get the phone number. But it is not working.

NSString *num = [[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"];

is there any way to get the phone number in iOS 4.1 ?

Thanks, Shinto


In short there is no approved way to do this.

This is a duplicate question see Programmatically get own phone number in iOS for more info.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号