开发者

Can ABNewPersonViewController be used to edit existing records?

开发者 https://www.devze.com 2023-02-08 00:04 出处:网络
I\'m trying to use ABNewPersonViewController to edit an existing record. I set the displayedPerson property and it shows up fine with all the info.

I'm trying to use 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.

The only solution I can think it 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?


add a custom "Cancel" button to replace the original "cancel" button of ABNewPersonViewController!!

0

精彩评论

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