PDA

View Full Version : How to add the record to the address book?




lizhuo
Apr 26, 2011, 03:11 AM
In XCode, there are nothing records in Address Book.

So, how to add the record to the address book? Would some one pls give the
sample about it?
If we use the ABAddressBookAddRecord: method,

bool ABAddressBookAddRecord (
ABAddressBookRef addressBook,
ABRecordRef record,
CFErrorRef *error
);

What should I do to give the references of this method?

Thank you.

EDIT:

I create a address book and some record. Then add the record to the address book. After all of these, called ABAddressBookSave: method.
I have added the record successfully. But after I reset the Xcode simulater, I found that the record ,I added before, also in the address book.
So how to clear the address book?
Thanks.