views:

440

answers:

1

Hi,

I am developing an application which is similar to native contact book app of iphone. I want to add additional property/field in native iphone address book database. e.g. network carrier of each contact (AT&T).

How to access the database of native address book from our app? Is that possible to do?

Please help!! Urgent!!

help would be appreciated.

Thanks.

+1  A: 

You cannot add custom fields. You can add data into the Notes field, but not add any custom fields into the AddressBook Person class. You can extend the AddressBook but you will need to save the data somewhere else and link the Person to the data you saved.

You can access the data from the address book using the AddressBook framework.

John Wang
I want to add new column in native address book database. I am able to edit structure of sqlite db of address book in simulator (e.g added new column in ABPersonRecord table). I've not tested this in iPhone device yet.Will apple approve this or will reject?Thanks.
Ruchir Shah
I'd be very wary of that. It could fall in the area of "private" apis. And that is often if not always rejected at some point once discovered.
John Wang
I found a method addPropertiesAndTypes: to add new properties in address book for each contact. But I am not able to find any proper reference code for that. If you have experience with that then please let me know.
Ruchir Shah