如何使用ABAddressBook删除iPhone通讯录中的记录? [英] How to delete record in iPhone address book using ABAddressBook?

查看:122
本文介绍了如何使用ABAddressBook删除iPhone通讯录中的记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习通讯录框架,然后想从iPhone通讯录中删除该记录。我检查了文档,发现了一个名为 ABAddressBookRemoveRecord 的函数,但是我找不到删除记录的方法,例如用户将选择一条记录然后点击删除按钮,然后记录将被删除。

I was learning the addressbook framework and then I wanted to delete the record from the the iPhone contact book. I checked up the documentation and found a function called ABAddressBookRemoveRecord, but I can't find out a way to delete the records, like the user will select a record and then hit the delete button and then the record will get deleted.

到目前为止,我所做的一切都只是在文档上用力而已。

All I did till now is banged my head over the documentation and that's all.

能否请您提供一个链接或示例,以了解如何删除通讯簿中的记录?

Can you please provide me a link or an example how to delete a record in the address book?

谢谢!

推荐答案

查看ABPersonViewController + Delete类别,该类别无需使用任何私有方法即可删除联系人:

Check out the ABPersonViewController+Delete category which enables contact deletion without using any private methods:

https://github.com/shrtlist/ABDelete

这篇关于如何使用ABAddressBook删除iPhone通讯录中的记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆