I'm having trouble understanding how to access the properties of an address in a an ABAddressBookRef. I've done it okay with telephone numbers:
ABMultiValueRef phoneNumberProperty = ABRecordCopyValue(person, kABPersonPhoneProperty);
NSArray* phoneNumbers = (NSArray*)ABMultiValueCopyArrayOfAllValues(phoneNumberProperty);
CFRelease(phoneNumberProperty);
But alas... I can't work out how to do it for addresses. If I do this:
ABMultiValueRef addressProperty = ABRecordCopyValue(person, kABPersonAddressProperty);
NSArray *address = (NSArray *)ABMultiValueCopyArrayOfAllValues(addressProperty);
I get back what looks like a Dictionary, but it is typed as an Array. How do I access the properties within it? I've seen loads of different suggestions on the web, but they all seem to involve about 30 lines of code, just to pull out one line from a dictionary!
Can anyone help please? Thanks!