How to detect changes to Address Book after ABPersonViewController presentation

Posted by nkhorman on Stack Overflow See other posts from Stack Overflow or by nkhorman
Published on 2010-03-16T00:27:37Z Indexed on 2010/03/16 0:29 UTC
Read the original article Hit count: 587

Filed under:
|

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 determine 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.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about SDK