Is it possible to let ABPersonViewController display only a multivalued property with a specific label?

StackOverflow https://stackoverflow.com/questions/17662220

Frage

Assuming, I have an ABAddressBook with a person record that has a valid work address and an invalid home address.
I want to use an ABPersonViewController to let the user correct the invalid address. An ABPersonViewController has a property displayedProperties that allows to specify which properties are displayed. One can choose any ABPropertyID, among them kABPersonAddressProperty. If done so, the ABPersonViewController displays ALL addresses of the person record. Thus the user has no indication which one should be corrected.
I would like to specify that only an address with a specific label, say @"home" should be displayed. Is this possible?

War es hilfreich?

Lösung

It's not possible, as you've surmised. Beyond displayedProperties, the ABPersonViewController does not expose API for displaying only the kABHomeLabel property, say, of a multivalued property.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top