Uygulamamdaki bir telefon numarasını seçmeyi işlemek için ABPeoplePickerNavigationController
alt sınıfım var. Her şey iOS 7 ve altında harika çalışıyor.iOS 8'de kişi seçilemiyor
iOS 8'de, bir telefon numarası seçerken ABPeoplePickerNavigationControllerDelegate
numaralı telefona rastlanmadı. Bunun yerine, sadece telefon numarasını arar.
iOS 7'de (peoplePickerNavigationController:shouldContinueAfterSelectingPerson:property:identifier:
) kişi seçimini işlemek için kullandığım yöntemin iOS 8'de kullanımdan kaldırıldığını fark ettim. Bu yöntem peoplePickerNavigationController:didSelectPerson:property:identifier:
ile değiştirildi.
Temsilcimin ayarlandığını biliyorum çünkü peoplePickerNavigationControllerDidCancel:
yöntem geri bildirimini başarılı bir şekilde aldım.
Başka biri bu sorunu yaşadı mı?
- (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker didSelectPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier {
[self peoplePickerNavigationController:peoplePicker shouldContinueAfterSelectingPerson:person property:property identifier:identifier];
}
- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier {
...do stuff...
return NO;
}
- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person {
return YES;
}
- (void)peoplePickerNavigationControllerDidCancel:(ABPeoplePickerNavigationController *)peoplePicker {
[self dismissViewControllerAnimated:self.shouldAnimateDismiss completion:NULL];
}
'prededicForSelectionOfProperty' nedir? – Rob
Xcode 6 ile mi çalışıyorsunuz ve projenizde iOS 8'in bir Temel SDK'sı var mı? – rmaddy
@Rob Hiçbir şey. Bunu ayarlamadan her zaman çalıştı. – Alexander