IOS 监听通讯录是否改变

 ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, &error);
 ABAddressBookRegisterExternalChangeCallback(addressBook, addressBookChanged, self);


void addressBookChanged(ABAddressBookRef addressBook, CFDictionaryRef info, void *context)
{
    //TODO
}

 

posted @ 2014-12-26 10:08  菜鸟程序猿  阅读(350)  评论(0编辑  收藏  举报