ABPeoplePickerNavigationController changements avec iOS8?

Depuis que j'ai mis à jour XCode (6.0, 6A313) et mon iOS (8.0, 12A365) sur l'iPhone pour les semences gm, le ABPeoplePickerNavigationController code ne fonctionne pas comme avant.

  • iOS 7.1.2: Si quelqu'un veut importer un contact, le carnet d'adresses s'ouvre et vous pouvez voir la liste complète des contacts, après la cueillette, il ouvre l'affichage des détails d'un contact, et que vous pouvez ajouter le contact avec un clic sur le numéro de téléphone que vous souhaitez importer.

  • iOS 8.0: son tout semblable, mais si vous cliquez sur le numéro d'un contact il de composer le numéro de téléphone au lieu de l'importer..

Code:

#pragma mark - AddressBook Delegate Methods
-(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person{
return YES;
}
-(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier{
//Get the first and the last name. Actually, copy their values using the person object and the appropriate
//properties into two string variables equivalently.
//Watch out the ABRecordCopyValue method below. Also, notice that we cast to NSString *.
NSString *firstName = (__bridge NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty);
NSString *lastName = (__bridge NSString *)ABRecordCopyValue(person, kABPersonLastNameProperty);
//Compose the full name.
NSString *fullName = @"";
//Before adding the first and the last name in the fullName string make sure that these values are filled in.
if (firstName != nil) {
fullName = [fullName stringByAppendingString:firstName];
}
if (lastName != nil) {
fullName = [fullName stringByAppendingString:@" "];
fullName = [fullName stringByAppendingString:lastName];
}
//Get the multivalue number property.
CFTypeRef multivalue = ABRecordCopyValue(person, property);
//Get the index of the selected number. Remember that the number multi-value property is being returned as an array.
CFIndex index = ABMultiValueGetIndexForIdentifier(multivalue, identifier);
//Copy the number value into a string.
NSString *number = (__bridge NSString *)ABMultiValueCopyValueAtIndex(multivalue, index);
nameTextField.text = fullName;
numberTextField.text = number;
//Dismiss the contacts view controller.
[_addressBookController dismissViewControllerAnimated:YES completion:nil];
return NO;
}
//Implement this delegate method to make the Cancel button of the Address Book working.
-(void)peoplePickerNavigationControllerDidCancel:(ABPeoplePickerNavigationController *)peoplePicker{
[_addressBookController dismissViewControllerAnimated:YES completion:nil];
}

ne pouvais pas trouver une réponse dans la bibliothèque de développement iOS d'apple.
avoir quelqu'un à une solution pour cela?

InformationsquelleAutor manntobias | 2014-09-12