开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜