4

我在CNContact使用标识符重新获取 a 时遇到问题。早期,我枚举所有联系人并对电话号码做一些事情,同时将标识符存储在一个数组中。

稍后,我想使用以下存储的标识符之一获取特定联系人(currentIdentifier我之前存储的标识符在哪里):

CNContact *currentContact = [[CNContact alloc] init];
currentContact = [self.contactStore unifiedContactWithIdentifier:currentIdentifier keysToFetch:@[[CNContactFormatter descriptorForRequiredKeysForStyle:CNContactFormatterStyleFullName]] error:&error];

NULL但是,我在登录时不断收到。

4

0 回答 0