I have an app that displays ABAddressBook
contacts in a UITableView
. Currently I\'m reading the contacts into an NSDictionary
, however
Same as Abizern's answer, but if you want to display full names that are localized, use ABRecordCopyCompositeName
. (In English names are "First Last", but in Chinese names are "LastFirst").
ABRecordRef person = CFArrayGetValueAtIndex(addressBookData, idx);
NSString *fullName = (__bridge_transfer NSString *)ABRecordCopyCompositeName(person);//important for localization