Can ABNewPersonViewController be used to edit existing records? [duplicate]

我只是一个虾纸丫 提交于 2019-12-24 11:50:31

问题


Possible Duplicate:
Can ABNewPersonViewController be used to edit existing records?

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.

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?


回答1:


Go through QuickContact Sample Project



来源:https://stackoverflow.com/questions/5988151/can-abnewpersonviewcontroller-be-used-to-edit-existing-records

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!