Tutorial :How can I wait for ABPeoplePickerNavigationController be dismissed


How can I wait for the contact to be chosen in my address book, before going on?

Hereunder the code I use

BPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];  picker.peoplePickerDelegate = self;  [self presentModalViewController:picker animated:YES];    //following code  

Right now it just proceeds with executing the code...



Are you implementing the delegate methods?

- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person  

If you are, move the "following code" into the delegate method, so after the user picks a person you can move on.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »