I have read the Address Book Programming Guide from Apple, but the examples therein don't quite go far enough to answer my question before referring the reader to the arcane framework references.
I would like to allow users to select a property within an address book record. I can present the ABPeoplePickerNavigationController, return YES to peoplePickerNavigationController: shouldContinueAfterSelectingPerson:, and then, within my implementation of peoplePickerNavigationController: shouldContinueAfterSelectingPerson: property: identifier:, I start to lose it.
I have three variables I'd like to set based on address book record properties: name (ABRecordCopyCompositeName), numberLabel (the label for the selected phone number, i.e. "work" or "home"), and the number itself (i.e. the selected telephone number).
I think I'm okay on the name, but the numberLabel and the number - both of which are part of a multiproperty value, are baffling. How do you find out what number was selected and get its corresponding label?
As ever, thanks in advance for your advice.
I would like to allow users to select a property within an address book record. I can present the ABPeoplePickerNavigationController, return YES to peoplePickerNavigationController: shouldContinueAfterSelectingPerson:, and then, within my implementation of peoplePickerNavigationController: shouldContinueAfterSelectingPerson: property: identifier:, I start to lose it.
I have three variables I'd like to set based on address book record properties: name (ABRecordCopyCompositeName), numberLabel (the label for the selected phone number, i.e. "work" or "home"), and the number itself (i.e. the selected telephone number).
I think I'm okay on the name, but the numberLabel and the number - both of which are part of a multiproperty value, are baffling. How do you find out what number was selected and get its corresponding label?
As ever, thanks in advance for your advice.