开发者

How to detect changes to Address Book after ABPersonViewController presentation

开发者 https://www.devze.com 2022-12-22 20:34 出处:网络
I have two view controllers that allow changes to the Address Book. The first one lets you add or create an entry based on an ABRedordRef or edit an existing ABRecordRef, by presentation of either AB

I have two view controllers that allow changes to the Address Book.

The first one lets you add or create an entry based on an ABRedordRef or edit an existing ABRecordRef, by presentation of either ABUnknownPersonViewController or ABPersonViewController.

The second one is a standard ABPeoplePickerNavigationController that allows you to view/edit any of the contents of the Address Book.

Both views are accessible easily accessible to the use via the main application UITabBarController.

How can I determi开发者_C百科ne that changes were made by either view controller, so that I can force data dependency changes to a third separate view controller.

I thought that I saw a notification center message that I could subscribe to, but I can't seem to find it again... I don't care if the notification center is the method that should be used, or a delegate protocol or... whatever, I don't care, I just need to know how to detect the change or the need to re-sync with the Address Book.

Can someone Please point me in the right direction.

Thank you.


You can subscribe to address book changes via ABAddressBookRegisterExternalChangeCallback See official documentation

0

精彩评论

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

关注公众号