File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,14 +85,15 @@ -(void) getContactsFromAddressBook:(CNContactStore *)store
8585 CNContactOrganizationNameKey,
8686 CNContactJobTitleKey,
8787 CNContactImageDataAvailableKey,
88+ CNContactThumbnailImageDataKey,
8889 CNContactUrlAddressesKey,
8990 CNContactBirthdayKey
9091 ];
9192 NSArray *arrayOfContacts = [store unifiedContactsMatchingPredicate: [CNContact predicateForContactsMatchingName: searchString]
9293 keysToFetch: keys
9394 error: &contactError];
9495 [arrayOfContacts enumerateObjectsUsingBlock: ^(CNContact * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
95- NSDictionary *contactDictionary = [self contactToDictionary: obj withThumbnails: NO ];
96+ NSDictionary *contactDictionary = [self contactToDictionary: obj withThumbnails: true ];
9697 [contacts addObject: contactDictionary];
9798 }];
9899 callback (@[[NSNull null ], contacts]);
You can’t perform that action at this time.
0 commit comments