Posts Tagged ‘kABPersonPhoneProperty’

Working with iPhone contacts: Adding phonenumbers to ABPerson

January 27, 2009

So.. after figuring out how to store a contact in the iPhone addressbook, using the AddressBook framework of the iPhone SDK, i realized that storing phonenumbers wasent quite as straight forward as storing fields like first- and lastname.

Phonenumbers are stored in a “multivalue” property. This means that multiple values with different “labels” can be stored for the property “phone”  (kABPersonPhoneProperty) of a person.

Anyways – i thought i would throw in the code: