從Apple文檔:
ABRecordCopyValue 返回記錄屬性的值。
CFTypeRef ABRecordCopyValue (
ABRecordRef record,
ABPropertyID property
);
參數
記錄
包含有關財產的記錄。
財產
記錄的,其價值正在被歸還的財產。請參閱ABPerson Reference中的「Constants」和ABGroup Reference中的「Constants」中的屬性。
返回值
中的記錄屬性值。
所以你只要問你的ABRecord的具體屬性,你應該沒問題!
- const ABPropertyID kABPersonAddressProperty;
- const CFStringRef kABPersonAddressStreetKey;
- const CFStringRef kABPersonAddressCityKey;
- const CFStringRef kABPersonAddressStateKey;
- const CFStringRef kABPersonAddressZIPKey;
- const CFStringRef kABPersonAddressCountryKey;
- const CFStringRef kABPersonAddressCountryCodeKey;
謝謝朱利安,它工作正常! – Maxime 2011-08-17 14:44:36