Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-17407]IOS 8: Moving to new delegates for contacts #5950

Merged
merged 1 commit into from
Aug 7, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions iphone/Classes/ContactsModule.m
Expand Up @@ -521,6 +521,7 @@ -(void)peoplePickerNavigationControllerDidCancel:(ABPeoplePickerNavigationContro
}
}

//Deprecated in iOS 8
-(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person
{
if (selectedPersonCallback) {
Expand All @@ -536,6 +537,7 @@ -(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)pe
return YES;
}

//Deprecated in iOS 8
-(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier
{
if (selectedPropertyCallback) {
Expand Down Expand Up @@ -595,6 +597,17 @@ -(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)pe
}
return YES;
}
// Called after a person has been selected by the user. New in iOS 8
- (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController*)peoplePicker didSelectPerson:(ABRecordRef)person
{
[self peoplePickerNavigationController:peoplePicker shouldContinueAfterSelectingPerson:person];
}

// Called after a property has been selected by the user. New in iOS 8
- (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController*)peoplePicker didSelectPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier
{
[self peoplePickerNavigationController:peoplePicker shouldContinueAfterSelectingPerson:person property:property identifier:identifier];
}

@end

Expand Down