programmatically adding contact in iphone contact list
I want to programmatically add contact to iphone contact list without using ABNewPersonViewController. I would 开发者_StackOverflow社区simply like to pass parameters and want the ABRecordRef as result. Is this possible?
ABGroupAddMember (group, contact, nil) ;
ABAddressBookSave(inAddressBook, nil) ;
After adding the contact save the address book.
bool ABAddressBookAddRecord (
ABAddressBookRef addressBook,
ABRecordRef record,
CFErrorRef *error
);
https://developer.apple.com/documentation/addressbook
精彩评论