Search code examples
ios4

Why do I get this 'Use of undeclare identifier addressbook' error?


NSArray* allPersons = (NSArray*)ABAddressBookCopyArrayOfAllPeople(addressBook);

I get a Use of undeclare identifier addressbook error. Why?


Solution

  • The error you are getting answers your question. You are passing addressBook to the function, but you haven't defined addressBook.