Why do I get this 'Use of undeclare identifier addressbook' error?
NSArray* allPersons = 开发者_Go百科(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
.
精彩评论