Created
March 26, 2013 18:09
-
-
Save wolffan/5247718 to your computer and use it in GitHub Desktop.
Get email From contact
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person | |
{ | |
//get email and dismiss picker | |
ABMutableMultiValueRef email = ABRecordCopyValue( person, kABPersonEmailProperty ); | |
CFStringRef emailRef = ABMultiValueCopyValueAtIndex(email, 0); | |
[self dismissModalViewControllerAnimated:YES]; | |
//return NO to not show the contact details | |
return NO; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remember to implement AdressBook protocol and to include AdressBook libraries