Changing email of a contact in address book

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-05-28T16:50:55Z Indexed on 2010/05/29 0:32 UTC
Read the original article Hit count: 611

Filed under:
|
|

Hey guys,

I want to change the email of a contact in address book. my code is as follow. but somehow it doesnt work. do you know why?

- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker
      shouldContinueAfterSelectingPerson:(ABRecordRef)person
 {
      CFErrorRef anError = NULL;
      ABMultiValueRef email = ABMultiValueCreateMutable(kABMultiStringPropertyType);
      NSString *personEmail = [conversationHistory getReceiver];
      ABRecordSetValue(person, kABPersonEmailProperty, email, &anError);
      CFRelease(email);
      [self dismissModalViewControllerAnimated:YES];
      return NO;
 }

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch