开发者

How to auto populate phone number from iphone? [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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜