|
I couldn't get some of the later examples with multiple combined searches to compile and run properly. Here are some fixes that will help newbies like myself.
When creating a NSArray with multiple objects, be sure to terminate it with nil, like so...
allSearchElements = [NSArray arrayWithObjects: firstNameSearch, lastNameSearch, companySearch, nil];
Also when defining the search elements, kABAndSearch doesn't seem to be correct from the AddressBook documentation. It should be kABSearchAnd or kABSearchOr.
Hope this helps.
|