我已經加入了框架圖像:如何從聯繫人
#import "AddressBook/ABAddressBook.h"
#import "AddressBookUI/AddressBookUI.h"
我想要得到的image.you可以修改我的代碼,或者給我鏈接
ABAddressBookRef addressBook = ABAddressBookCreate();
CFArrayRef nameArray = ABAddressBookCopyArrayOfAllPeople (addressBook);
m_SourceContactsUserArray = [[NSMutableArray alloc] init];
for (int i = 0; i<CFArrayGetCount(nameArray); i++) {
ABRecordRef person = CFArrayGetValueAtIndex(nameArray, i);
NSString *personName = (NSString*)ABRecordCopyValue(person,kABPersonFirstNameProperty);
[m_SourceContactsUserArray addObject:personName];
}
CFRelease(addressBook);
CFRelease(nameArray);
非常感謝你許多。
的[從地址簿的人的圖像]可能重複(HTTP://計算器.com/questions/2085959/get-image-of-a-person-from-addressbook) – CanSpice 2012-02-20 19:52:55