是否可以使用ABNewPersonViewController来编辑现有记录? [英] Can ABNewPersonViewController be used to edit existing records?

查看:163
本文介绍了是否可以使用ABNewPersonViewController来编辑现有记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

我试图使用ABNewPersonViewController来编辑现有的记录。我设置displayedperson属性,它显示精细与所有的信息。如果我点击保存,一切正常工作。

I'm trying to using ABNewPersonViewController to edit an existing record. I set the displayedPerson property and it shows up fine with all the info. If I hit 'Save', everything works as expected. However, if I hit 'Cancel', the record is deleted from the Address Book.

我不能使用ABPersonViewController,因为我有一个自定义的联系人信息页面,并需要通过我的页面打开编辑页面。如果你确认这是不可能这样做,你能给我一些其他的解决方案。

I can't use ABPersonViewController since I have a customized contact info page and need to open the editing page through my page. If you confirm that it is nonpossible to do like this, can you give me some other solutions.

我可以想到的唯一解决方案,如果是深度复制记录,然后重新如果用户取消编辑对话框,则将其添加到地址簿。是否真的没有更好的方法?

The only solution I can think if is deep copying the record and then re-adding it to the Address Book if the user cancels out of the editing dialog. Is there really no better way?

推荐答案

通过 QuickContact 示例项目

这篇关于是否可以使用ABNewPersonViewController来编辑现有记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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