You need to create a select query if you need image data.
CNContactStore *contactStore = [[CNContactStore alloc] init];
NSPredicate *predicate = [CNContact predicateForContactsWithIdentifiers:@[[contact identifier]]];
CNContactFetchRequest *request = [[CNContactFetchRequest alloc] initWithKeysToFetch:@[[CNContactVCardSerialization descriptorForRequiredKeys],
CNContactImageDataKey,
CNContactThumbnailImageDataKey
]];
[request setPredicate:predicate];
NSError *error;
NSMutableArray *mutArray = [NSMutableArray array];
[contactStore enumerateContactsWithFetchRequest:request error:&error usingBlock:^(CNContact * _Nonnull fetchedContact, BOOL * _Nonnull stop) {
[mutArray addObject:fetchedContact];
}];
}
source
share