[英]How to fetch twitter account information from iPhone's addressbook
我可以看到post,它從通訊錄中獲取信息,但是我無法獲得有關如何從iPhone的通訊錄中獲取給定電話的Twitter帳戶詳細信息的任何參考。
請讓我知道,如何獲取該信息
這是可能的。 嘗試使用下面的常量之一
預定義的常量用於標識社交網絡服務。 您可以使用這些常量或任何其他字符串。
const CFStringRef kABPersonSocialProfileServiceTwitter;
const CFStringRef kABPersonSocialProfileServiceGameCenter;
const CFStringRef kABPersonSocialProfileServiceFacebook;
const CFStringRef kABPersonSocialProfileServiceMyspace;
const CFStringRef kABPersonSocialProfileServiceLinkedIn;
const CFStringRef kABPersonSocialProfileServiceFlickr;在iOS 5.0及更高版本中可用。
用這樣的東西:
ABRecordCopyValue(person, kABPersonSocialProfileServiceTwitter);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.