Guest User

Untitled

a guest
Apr 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. ABAddressBookRef addressBook = ABAddressBookCreate();
  2. CFArrayRef people = ABAddressBookCopyArrayOfAllPeople(addressBook);
  3. CFMutableArrayRef peopleMutable = CFArrayCreateMutableCopy(
  4. kCFAllocatorDefault,
  5. CFArrayGetCount(people),
  6. people
  7. );
  8.  
  9. NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(%@ like %@)", kABPersonFirstNameProperty, aVariable];
Add Comment
Please, Sign In to add comment