简体   繁体   English

您可以通过iPhone SDK获得当前用户的电话号码和联系方式吗?

[英]Can you get the current user's phone # and contact details through the iPhone SDK?

As far as I can tell, I can only get the entire address book, but there is no way to know which (if any) contact is the contact information for the owner of the phone, ie the phone # of the phone itself. 据我所知,我只能获取整个通讯录,但是无法知道哪个(如果有)联系人是电话所有者的联系信息,即电话本身的电话号码。

Is there any way to accomplish this? 有什么办法可以做到这一点? Perhaps by triangulating some data the SDK makes available? 也许通过对SDK提供的一些数据进行三角剖分?

尝试这个...

CFShow([[NSUserDefaults standardUserDefaults] objectForKey:@"SBFormattedPhoneNumber"]); 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM