NSArray* allPersons = (NSArray*)ABAddressBookCopyArrayOfAllPeople(addressBook);
I get a Use of undeclare identifier addressbook
error. Why?
The error you are getting answers your question. You are passing addressBook
to the function, but you haven't defined addressBook
.