¡@

Home 

2014/10/15 ¤U¤È 10:10:36

iphone Programming Glossary: iphoneaddressbook

how to add new contact to iphone addressbook?

http://stackoverflow.com/questions/5389508/how-to-add-new-contact-to-iphone-addressbook

improve this question Here is a small example CFErrorRef error NULL NSLog @ @ self description ABAddressBookRef iPhoneAddressBook ABAddressBookCreate ABRecordRef newPerson ABPersonCreate ABRecordSetValue newPerson kABPersonFirstNameProperty people.firstname.. kABPersonPhoneProperty multiPhone nil CFRelease multiPhone ... Set other properties ... ABAddressBookAddRecord iPhoneAddressBook newPerson error ABAddressBookSave iPhoneAddressBook error CFRelease newPerson CFRelease iPhoneAddressBook if error NULL.. multiPhone ... Set other properties ... ABAddressBookAddRecord iPhoneAddressBook newPerson error ABAddressBookSave iPhoneAddressBook error CFRelease newPerson CFRelease iPhoneAddressBook if error NULL CFStringRef errorDesc CFErrorCopyDescription error NSLog..

Objective C Adding a Contact to a specific Group in the iPhone

http://stackoverflow.com/questions/8249010/objective-c-adding-a-contact-to-a-specific-group-in-the-iphone

Contact list and I want to Add this contact to this group how to do that here is the Code I am using ABAddressBookRef iPhoneAddressBook ABAddressBookCreate ABRecordRef contact ABPersonCreate add infos ABRecordSetValue contact kABPersonFirstNameProperty __bridge_retained.. NULL ABRecordSetValue contact kABPersonPhoneProperty multiPhone nil CFRelease multiPhone ABAddressBookAddRecord iPhoneAddressBook contact nil Thanks iphone objective c ios addressbook share improve this question First Check if the group exist void..