Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create an empty ABAddressBook in iPhone SDK?

Can I create an ABAddressBook which does not read data from my address book. i.e. it's empty to start with so that I can put in my own contacts fetched from the internet.

As you may know the function

ABAddressBookRef ab = ABAddressBookCreate(); 

gives me data from the built in addressbook. This is not what I want but if you know a solution to my problem please let me know.

like image 901
Godisemo Avatar asked Feb 12 '26 12:02

Godisemo


1 Answers

I don't think it is possible to have an empty instance of ABAddressBook. The documentation is only about getting an ABAddressBook filled with the address book of the iPhone.

like image 59
Laurent Etiemble Avatar answered Feb 15 '26 01:02

Laurent Etiemble