开发者

programmatically adding contact in iphone contact list

开发者 https://www.devze.com 2023-01-31 04:57 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消